Advertisement
GaMeRFoReVeR

Pare

Oct 27th, 2014
235
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.65 KB | None | 0 0
  1. /* Plugin generated by AMXX-Studio */
  2.  
  3. #include <amxmodx>
  4. #include <cstrike>
  5. #include <amxmisc>
  6.  
  7. #define PLUGIN "Daj pare"
  8. #define VERSION "1.0"
  9. #define AUTHOR "Gamer"
  10.  
  11.  
  12. public plugin_init()
  13. {
  14.     register_plugin(PLUGIN, VERSION, AUTHOR);
  15.    
  16.     register_concmd("daj_novac", "DajNovac", ADMIN_RCON, "daj_novac <nick> <kolicina>");
  17. }
  18.  
  19. public DajNovac(id, novac, cid)
  20. {
  21.     if(!cmd_access(id, novac, cid, 3))
  22.         return PLUGIN_HANDLED;
  23.    
  24.     new arg1[33], arg2[6];
  25.     read_argv(1, arg1, 32);
  26.     read_argv(2, arg2, 5);
  27.    
  28.     new igrac = cmd_target(id, arg1);
  29.     new kolicina = str_to_num(arg2)-1;
  30.    
  31.     cs_set_user_money(igrac, kolicina);
  32.     return PLUGIN_CONTINUE;
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement