29.12.2009, 03:35
pawn Код:
if(strcmp(cmd,"/unbanip",true) == x0)
{
if(PlayerInfo[playerid][pAdmin] >= 5)
{
tmp = strtok(cmdtext,idx);
if(!strlen(tmp))
{
SendClientMessage(playerid,COLOR_GRAD1,"KASUTAMINE: /aunban [IP]");
return 1;
}
format(string,sizeof(string),"unbanip %s",tmp);
SendRconCommand(string);
SendRconCommand("reloadbans");
format(string, sizeof(string), "* Successfuly Unbanned [%s] IP", tmp);
SendClientMessage(playerid,TEAM_GROVE_COLOR,string);
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "You must be a level 5 admin to do this command.");
}
return 1;
}

