UNBAN Command
#5

hey can you help me here is my /ban command

Quote:

CMD:ban(playerid,params[])
{
if(pInfo[playerid][pAdminLevel] >= 2)
{
if(IsPlayerConnected(playerid))
{
new targetid,reason[105],string[256];
if(sscanf(params, "us[105]", targetid,reason)) return SendClientMessage(playerid,-1,""chat" /ban [playerid] [reason]");
if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid,-1,""chat" Player is not online");

format(string, sizeof(string), ""chat""COL_LIGHTBLUE" %s %s has banned %s [Reason: %s]",GetAdminName(playerid),PlayerName(playerid),Play erName(targetid),reason);
SendClientMessageToAll(-1,string);

BanPlayer(targetid,reason,PlayerName(playerid));
}
}
else {
SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" You do not have the right admin permissions for this command!");
}
return 1;
}

please man help cause i realy need /unban command
Reply


Messages In This Thread
UNBAN Command - by Infinity90 - 09.06.2012, 13:29
Re: UNBAN Command - by leonardo1434 - 09.06.2012, 13:39
Re: UNBAN Command - by Infinity90 - 09.06.2012, 13:41
Re: UNBAN Command - by leonardo1434 - 09.06.2012, 13:46
Re: UNBAN Command - by Destroyed - 23.05.2013, 22:53

Forum Jump:


Users browsing this thread: 4 Guest(s)