Advertisement
Guest User

Metni Armor

a guest
Sep 2nd, 2014
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. #include <amxmodx>
  2. #include <amxmisc>
  3. #include <fun>
  4.  
  5. public plugin_init()
  6. {
  7. register_plugin("Metni Armor", "1.0", "LoMi")
  8. register_concmd("amx_metniarmor", "MetniArmor", ADMIN_RCON, "<part of nick> ; <amount>")
  9. }
  10. public MetniArmor(id)
  11. {
  12. if(is_user_alive(id))
  13. {
  14. new arg1[32], arg2[32];
  15. read_argv(1, arg1, 31)
  16. read_argv(2, arg2, 31)
  17. new player = cmd_target(id, arg1)
  18. new player_armor = get_user_armor(player);
  19. set_user_armor(player, player_armor + str_to_num(argument2))
  20. }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement