SHARE
TWEET

Untitled

a guest Jul 16th, 2019 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     if(strcmp(cmd, "/givemoney", true) == 0)
  2.     {
  3.         if(IsPlayerConnected(playerid))
  4.         {
  5.             tmp = strtok(cmdtext, idx);
  6.             if(!strlen(tmp))
  7.             {
  8.                 SendClientMessage(playerid, COLOR_WHITE, "{FF6347}KORISTETE | {FFFFFF}/givemoney [ID/Ime na Igrac] [Pari].");
  9.                 return 1;
  10.             }
  11.             new playa;
  12.             new money;
  13.             playa = ReturnUser(tmp);
  14.             tmp = strtok(cmdtext, idx);
  15.             money = strval(tmp);
  16.             if (PlayerInfo[playerid][pAdmin] >= 9)
  17.             {
  18.                 if(IsPlayerConnected(playa))
  19.                 {
  20.                     if(playa != INVALID_PLAYER_ID)
  21.                     {
  22.                         ConsumingMoney[playa] = 1;
  23.                         GivePlayerMoney(playa, money);
  24.                         GetPlayerName(playa, giveplayer, sizeof(giveplayer));
  25.                         GetPlayerName(playerid, sendername, sizeof(sendername));
  26.                         format(string, 256, "{BEAA23}[GIVEMONEY]: %s dade na %s pari $%d.", sendername,giveplayer,money);
  27.                         SendAdminMessage(COLOR_YELLOW, string);
  28.                     }
  29.                 }
  30.             }
  31.             else
  32.             {
  33.                 SendClientMessage(playerid, COLOR_GRAD1, "{0084ff}INFO | {FFFFFF}Nemozete da ja koristete ovaa komanda !");
  34.             }
  35.         }
  36.         return 1;
  37.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top