Guest User

Untitled

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