Advertisement
Guest User

35hp

a guest
Feb 27th, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. #include <amxmodx>
  2. #include <hamsandwich>
  3. #include <fun>
  4.  
  5. #define PLUGIN "HP on Spawn"
  6. #define VERSION "1.0"
  7. #define AUTHOR "alan_el_more"
  8.  
  9. #define SET_HP 35
  10.  
  11. public plugin_init() {
  12. register_plugin(PLUGIN, VERSION, AUTHOR)
  13. RegisterHam(Ham_Spawn, "player", "fw_PlayerSpawn_Post", 1)
  14. }
  15.  
  16. public fw_PlayerSpawn_Post(id)
  17. {
  18. if (!is_user_alive(id))
  19. return;
  20.  
  21. set_user_health(id, SET_HP)
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement