14.06.2011, 16:50
Hey all. What's wrong with my unban command? It just doesn't work
pawn Код:
COMMAND:unban(playerid,params[])
{
new pIp[200];
if(PlayerInfo[playerid][pAdminLevel] <5) return SendClientMessage(playerid,COLOR_RED,"You're not allowed to use this");
if(sscanf(params,"d",pIp)) return SendClientMessage(playerid,COLOR_GREY,"USAGE:/unban [ip]");
format(String,sizeof(String),"unbanip %s",pIp);
SendRconCommand(String);
SendRconCommand("reloadbans");
return 1;
}