MegastoRM

kod2

Apr 1st, 2012
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.46 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 dajarmor
  12.  
  13. public plugin_init() {
  14.     register_plugin(PLUGIN, VERSION, AUTHOR)
  15.  
  16.     dajarmor = register_cvar("amx_armor", "100")
  17.    
  18.     register_clcmd("say /pancir","setarmor")
  19. }
  20.  
  21. public setarmor(id)
  22. {  
  23.     new armor = get_user_armor(id)
  24.     set_user_armor(id, armor + get_pcvar_num(dajarmor))
  25. }
Advertisement
Add Comment
Please, Sign In to add comment