please help with /unban
#1

Hi all!
I am a newbie and wants someone to help me with /unban command.
Whenever I post help it goes useless but this time please someone help me with it.
Quote:

dcmd_ban(playerid,params[]) {
if(IsPlayerCommandLevel(playerid,"ban")) {
if(!strlen(params)) return SendClientMessage(playerid,red,"Syntax Error: \"/BAN <NICK OR ID> (<REASON>)\".");
new tmp[256],Index; tmp = strtok(params,Index);
new id; if(!IsNumeric(tmp)) id = ReturnPlayerID(tmp); else id = strval(tmp);
if(IsPlayerConnected(id) && id != INVALID_PLAYER_ID && id != playerid) {
SendCommandMessageToAdmins(playerid,"BAN");
new string[256],name[24],ActionName[24]; GetPlayerName(playerid,name,24); GetPlayerName(id,ActionName,24);
if(!strlen(params[strlen(tmp)+1])) format(string,256,"\"%s\" has been Banned by Administrator \"%s\".",ActionName,name);
else format(string,256,"\"%s\" has been Banned by Administrator \"%s\". (Reason: %s)",ActionName,name,params[strlen(tmp)+1]);
SendClientMessageToAll(yellow,string); return Ban(id);
} else return SendClientMessage(playerid,red,"ERROR: You can not ban yourself or a disconnected player.");
} else return SendLevelErrorMessage(playerid,"ban");
}

This is my ban command help me with /unban please!!!!!!!!!!!!!!!!!!!!!!!!!!!
Reply


Messages In This Thread
please help with /unban - by HitterHitman - 13.12.2013, 11:51
Re: please help with /unban - by Hybris - 13.12.2013, 11:58
Re: please help with /unban - by HitterHitman - 13.12.2013, 12:01
Re: please help with /unban - by HitterHitman - 15.12.2013, 12:08
Re: please help with /unban - by Kells - 15.12.2013, 12:16
Re: please help with /unban - by HitterHitman - 15.12.2013, 12:25
Re: please help with /unban - by HitterHitman - 15.12.2013, 12:29
Re: please help with /unban - by HitterHitman - 15.12.2013, 13:33
Re: please help with /unban - by Dawno - 15.12.2013, 13:35
Re: please help with /unban - by HitterHitman - 15.12.2013, 13:41

Forum Jump:


Users browsing this thread: 2 Guest(s)