Advertisement
Guest User

Untitled

a guest
Mar 20th, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. #include <amxmodx>
  2. #include <amxmisc>
  3. #include <hamsandwich>
  4. #include <fun>
  5.  
  6. #define PLUGIN "100hp plugin"
  7. #define VERSION "1.0"
  8. #define AUTHOR "Alexandru"
  9.  
  10. new bool: g_Map = false
  11.  
  12.  
  13. public plugin_init() {
  14. register_plugin(PLUGIN, VERSION, AUTHOR)
  15. RegisterHam(Ham_Spawn,"player","Spawn",1)
  16. new MapName[32]
  17. get_mapname(MapName,31)
  18. if(equali(MapName,"35hp"))
  19. g_Map = true
  20. }
  21.  
  22. public Spawn(id) {
  23. if(g_Map)
  24. set_task(1.0,"task_100hp",id)
  25. }
  26.  
  27. public task_100hp(id) {
  28. if(is_user_alive(id))
  29. set_user_health(id,100)
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement