Advertisement
Guest User

heatON

a guest
Mar 13th, 2009
580
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. if(strcmp(cmd, "/armourall", true) == 0)
  2. {
  3. GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
  4. GetPlayerName(playerid, sendername, sizeof(sendername));
  5. if(logged[playerid] == 1)
  6. {
  7. if(PlayerInfo[playerid][pAdmin] >= 2)
  8. {
  9. format(string, sizeof(string), "AdmCMD: Adminul %s a dat armura la toti.", sendername);
  10. SendClientMessageToAll(COLOR_BLUE, string);
  11. new PlayerName[30];
  12. GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
  13. printf("[Comanda] %s a scris /armourall pt a da armura la toti.", PlayerName);
  14. for(new i = 0; i < MAX_PLAYERS; i++)
  15. {
  16. SetPlayerArmour(i, 100);
  17. }
  18. }
  19. else
  20. {
  21. SendClientMessage(playerid, COLOR_RED, "Nu ai autorizatie sa folosesti comanda!");
  22. }
  23. }
  24. else
  25. {
  26. SendClientMessage(playerid, COLOR_RED, "Trebuie sa fii logat ca sa folosesti comanda!");
  27. }
  28. return 1;
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement