Guest User

Untitled

a guest
Apr 21st, 2019
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.36 KB | None | 0 0
  1. CMD:oduzminovac(playerid, params[]) {
  2.  
  3.     new kolicina;
  4.  
  5.     if(sscanf(params, "i", kolicina)) return SendClientMessage(playerid, -1, "/oduzminovac (kolicina)");
  6.  
  7.     for(new i = 0, j = GetPlayerPoolSize(); i <= j; i++)
  8.     {
  9.         if(IsPlayerConnected(i))
  10.         {
  11.             if(kolicina < 1) GivePlayerMoney(i, -kolicina)
  12.             else GivePlayerMoney(i, kolicina)
  13.         }
  14.     }
  15.  
  16.     return 1;
  17.  
  18. }
Advertisement
Add Comment
Please, Sign In to add comment