14.03.2011, 13:05
pawn Код:
CMD:ban(playerid, params[])
{
//Is Player Admin script here
{
new pID, Msg[128];
if(sscanf(params, "us[60]", pID, params)) return SendClientMessage(playerid, COLOR_RED, "* Usage: /Ban < Player ID > < Reason >");
if(!IsPlayerConnected(pID)) return SendClientMessage(playerid, COLOR_RED, "That user is not connected!");
format(Msg, sizeof(Msg), "Admin: %s(%d) has banned: %s(%d) for: %s", pName(playerid), playerid, pName(pID), pID, params);
SendClientMessageToAll(COLOR_GREY, Msg);
return BanEx(pID, "Admin Ban!");
}
else return SendClientMessage(playerid, COLOR_RED, "This command is for admin lvl 3 + only!");
}