SA-MP Forums Archive
/ban help - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: /ban help (/showthread.php?tid=439640)



/ban help - Chiao - 26.05.2013

Hello mates I have some issues I need a zcmd of /ban I tried many of them but most of them are for rcon I need it for administrator level 3 ...
Please help me out


Re: /ban help - TomatoRage - 26.05.2013

What is your administrator code i mean

I have AdminLevel[playerid]


Re: /ban help - Chiao - 26.05.2013

Quote:
Originally Posted by TomatoRage
Посмотреть сообщение
What is your administrator code i mean

I have AdminLevel[playerid]
I really didnt understand what u just said


Re: /ban help - IceBilizard - 26.05.2013

pawn Код:
CMD:ban(playerid, params[])
{
    new id, reason[50], string[128], banned[MAX_PLAYER_NAME];
    if(PlayerInfo[playerid][pAdminLevel] >= 3 || !IsPlayerAdmin(playerid)) return SendClientMessage(playerid,red,"You Are not Rcon admin Or admin lvl 3+");
    if(sscanf(params, "uz", id, reason)) return SendClientMessage(playerid, -1, "USAGE: /ban [playerid] [reason(optional)]");
    GetPlayerName(id, banned, sizeof(banned));
    format(string, sizeof(string), "AdmCmd: %s has been banned by %s. reason: %s", banned, GetName(playerid), reason);
    SendClientMessageToAll(red, string);
    BanEx(id, reason);
    return 1;
}
Rep+ if i helped you