Advertisement
Matrix1

Untitled

Jun 24th, 2014
268
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.04 KB | None | 0 0
  1. if(strcmp(cmd, "/razoruzajall", true) == 0)
  2. {
  3. if(IsPlayerConnected(playerid))
  4. {
  5. if(PlayerInfo[playerid][pAdmin] >= 3)
  6. {
  7. GetPlayerName(playerid, sendername, sizeof(sendername));
  8. format(string, sizeof(string), "Administrator %s gi razoruza site igraci.", sendername);
  9. SendClientMessageToAll(COLOR_LIGHTRED, string);
  10. for(new i = 0; i < MAX_PLAYERS; i ++)
  11. {
  12. if(IsPlayerConnected(i))
  13. {
  14. GivePlayerWeapon(i, 24, 0);
  15. GivePlayerWeapon(i, 31, 0);
  16. GivePlayerWeapon(i, 29, 0);
  17. GivePlayerWeapon(i, 5, 0);
  18. }
  19. }
  20. }
  21. else
  22. {
  23. SendClientMessage(playerid, COLOR_RED, "{FF0000}GRESKA:{FFFFFF}Nemozete da ja koristite ovaa komanda.");
  24. }
  25. }
  26. else
  27. {
  28. SendClientMessage(playerid, COLOR_RED, "{FF0000}GRESKA:{FFFFFF}Ne ste logirani!");
  29. }
  30. return 1;
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement