Guest User

now?

a guest
Jan 4th, 2015
228
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     if(!strcmp(cmdtext, "/dkred", true, 6))
  2.     {
  3.  
  4.     new giveplayerid, MoneysCount;
  5.     if( playerDB[ playerid ][ adminlvl ] > 0 )
  6.     {
  7.             if( ! sscanf(cmdtext, "ui", giveplayerid, MoneysCount))
  8.         {      
  9.             if(giveplayerid != INVALID_PLAYER_ID)
  10.             {
  11.                 if(GetPlayerScore(playerid) < 1500)
  12.                 {
  13.                     return SendClientMessage(playerid, -1, ""#COL_ERROR"[KLAIDA]: {F2F2F2}Turite per mazai patirties!");
  14.                 }
  15.  
  16.                     new String[128];
  17.                     format(String, sizeof(String), ""#COL_GREEN"Davėte žaidėjui {AEB404}%s "#COL_GREEN"kreditų {AEB404}%i",\             
  18.             PlayerName(giveplayerid), MoneysCount);
  19.  
  20.             SendClientMessage(playerid, -1, String);
  21.  
  22.             format(String, sizeof(String), ""#COL_GREEN"Žaidėjas {AEB404}%s "#COL_GREEN"kreditų {AEB404}%iLT",\
  23.             PlayerName(playerid), MoneysCount);
  24.  
  25.             SendClientMessage(giveplayerid, -1, String);
  26.  
  27.                     playerDB[giveplayerid][kreditai] += MoneysCount;
  28.             }
  29.             else
  30.             {
  31.                 SendClientMessage(playerid, -1, ""#COL_ERROR"( KLAIDA ): Žaidejas neprisijunges.");
  32.             }
  33.         }
  34.         else
  35.         {
  36.             SendClientMessage(playerid, -1, "{F2F2F2}Naudojimas: "#COL_CMD"/duotikrd [zaidejo Vardas/zaidejo ID] [Kreditai]");
  37.             SendClientMessage(playerid, -1, "{F2F2F2}Funkcija: "#COL_RULE"Duosite zaidejui kreditų.");
  38.         }
  39.     }
  40.         else
  41.         {
  42.             OnPlayerCommandText(playerid, "UnknownCommand");
  43.         }
  44.     return 1;
  45. }
Advertisement
Add Comment
Please, Sign In to add comment