Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CMD:skiniadmina(playerid, params[])
- {
- if(IsPlayerAdmin(playerid) || PlayerInfo[playerid][pAdmin] >=4)
- {
- new IDigraca, Ime[MAX_PLAYER_NAME], Poruka[68];
- if (sscanf(params, "u", IDigraca)
- return SendClientMessage(playerid, BELA, "KORISTI: /skiniadmina [ID igraca/deo imena]");
- else if (IDigraca == INVALID_PLAYER_ID)
- return SendClientMessage(playerid, BELA, "GRESKA - Pogresan ID igraca.");
- else if (PlayerInfo[IDigraca][pAdmin])
- return SendClientMessage(playerid, BELA, "GRESKA - Taj igrac nije admin.");
- PlayerInfo[IDigraca][pAdmin] = 0;
- GetPlayerName(playerid, Ime, MAX_PLAYER_NAME);
- format(Poruka, sizeof(Poruka), "Admin %s ti je skinuo admina.", Ime);
- SendClientMessage(IDigraca, BELA, Poruka);
- GetPlayerName(IDigraca, Ime, MAX_PLAYER_NAME);
- format(Poruka, sizeof(Poruka), "%s vise nije admin .", Ime);
- SendClientMessage(playerid, BELA, Poruka);
- }
- else
- SendClientMessage(playerid, BELA, "GRESKA - Nisi administrator.");
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment