Help: /unban command!
#1

Hello!

It's me again Well I tried to make an /unban command, but I can't unban an disconnected players, only connected ones.

Code:

pawn Код:
CMD:unban(playerid, params[])
{
    new string[200];
    new banner;
    if(pInfo[playerid][Adminlevel] < gCommands[UNBAN])return SCM(playerid, COLOR_RED, "[ERROR]: You can't use this command!");
    if(isnull(params)) return SCM(playerid, COLOR_GREY, "[USAGE]: /unban [playername]");
    if(pInfo[banner][Banned] == 0) return SCM(playerid, COLOR_RED, "[ERROR]: This player is not Banned!");
    pInfo[banner][Banned] = 0;
    format(string, sizeof(string), "[Admin]: You have succesfully Unbaned %s's account!", GetName(banner));
    SCM(playerid, COLOR_YELLOW, string);
    return 1;
}
Can someone tell, how to make an /unban command, which can unban an offline players?

Thanks
Reply


Messages In This Thread
Help: /unban command! - by Areax - 28.05.2013, 17:35
Re: Help: /unban command! - by DobbysGamertag - 28.05.2013, 17:38
Re: Help: /unban command! - by Areax - 28.05.2013, 17:42
Re: Help: /unban command! - by doreto - 28.05.2013, 17:48
Re: Help: /unban command! - by Areax - 28.05.2013, 17:50
AW: Help: /unban command! - by HurtLocker - 28.05.2013, 17:57
Re: AW: Help: /unban command! - by Areax - 28.05.2013, 17:59
Re: Help: /unban command! - by xXShadowXx - 28.05.2013, 18:03
AW: Re: AW: Help: /unban command! - by HurtLocker - 28.05.2013, 18:04
Re: AW: Re: AW: Help: /unban command! - by xXShadowXx - 28.05.2013, 18:05

Forum Jump:


Users browsing this thread: 1 Guest(s)