28.05.2013, 17:35
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:
Can someone tell, how to make an /unban command, which can unban an offline players?
Thanks
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;
}
Thanks