Guest User

Untitled

a guest
Oct 6th, 2013
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. CMD:skiniadmina(playerid, params[])
  2. {
  3. if(IsPlayerAdmin(playerid) || PlayerInfo[playerid][pAdmin] >=4)
  4. {
  5. new IDigraca, Ime[MAX_PLAYER_NAME], Poruka[68];
  6. if (sscanf(params, "u", IDigraca)
  7. return SendClientMessage(playerid, BELA, "KORISTI: /skiniadmina [ID igraca/deo imena]");
  8. else if (IDigraca == INVALID_PLAYER_ID)
  9. return SendClientMessage(playerid, BELA, "GRESKA - Pogresan ID igraca.");
  10. else if (PlayerInfo[IDigraca][pAdmin])
  11. return SendClientMessage(playerid, BELA, "GRESKA - Taj igrac nije admin.");
  12. PlayerInfo[IDigraca][pAdmin] = 0;
  13. GetPlayerName(playerid, Ime, MAX_PLAYER_NAME);
  14. format(Poruka, sizeof(Poruka), "Admin %s ti je skinuo admina.", Ime);
  15. SendClientMessage(IDigraca, BELA, Poruka);
  16. GetPlayerName(IDigraca, Ime, MAX_PLAYER_NAME);
  17. format(Poruka, sizeof(Poruka), "%s vise nije admin .", Ime);
  18. SendClientMessage(playerid, BELA, Poruka);
  19. }
  20. else
  21. SendClientMessage(playerid, BELA, "GRESKA - Nisi administrator.");
  22. return 1;
  23. }
Advertisement
Add Comment
Please, Sign In to add comment