MegastoRM

paste

Apr 1st, 2012
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. /* Plugin generated by AMXX-Studio */
  2.  
  3. #include <amxmodx>
  4. #include <fun>
  5. #include <amxmisc>
  6.  
  7. #define PLUGIN "New Plug-In"
  8. #define VERSION "1.0"
  9. #define AUTHOR "author"
  10.  
  11. new helti
  12.  
  13. public plugin_init() {
  14. register_plugin(PLUGIN, VERSION, AUTHOR)
  15. register_clcmd("say /helti", "heal")
  16. helti = register_cvar("amx_hp", "100")
  17. }
  18.  
  19. public heal(id)
  20. {
  21. if(get_user_flags(id) & ADMIN_RCON)
  22. {
  23. new helti = get_user_health(id)
  24. set_user_health(id, helti + get_pcvar_num(helti))
  25. }
  26.  
  27. }
Advertisement
Add Comment
Please, Sign In to add comment