HLMOD.HU Forrás Megtekintés - www.hlmod.hu
  1. #include <amxmodx>
  2. #include <fakemeta>
  3. #include <hamsandwich>
  4.  
  5. /* Force a point and a comma after expresions */
  6. #pragma semicolon 1
  7.  
  8. /* Health offset by ConnorMcLeod */
  9. #define m_iClientHealth 359
  10.  
  11. public plugin_init()
  12. {
  13. register_plugin("HP Bug Fix", "1.3", "claudiu_hks");
  14. /* After the player has spawned (forward) */
  15. RegisterHam(Ham_Spawn, "player", "ham_PlayerSpawnPost", 1);
  16. }
  17.  
  18. public ham_PlayerSpawnPost(id)
  19. {
  20. if (is_user_alive(id))
  21. {
  22. /* Negative value to make sure the message is sent */
  23. set_pdata_int(id, m_iClientHealth, -99);
  24. }
  25. }