26.08.2012, 15:46
Im trying to make this /unban command
[B]But it will not work I really need help with this, thank you
pawn Код:
dcmd_unban(playerid,params[]) {
if(PlayerInfo[playerid][Level] > 4)
{
new adminname[MAX_PLAYER_NAME];
GetPlayerName(playerid,adminname,sizeof(adminname));
if(!strlen(params)) return SendClientMessage(playerid,PINK,"Correct usage : /unban <IP>");
new string[76];
format(string,sizeof(string),"unbanip %s",params);
SendRconCommand("unbanip");
printf("%s(ID:%d) used the command unbanip and unbanned ip %s",adminname,playerid,params);
SendClientMessage(playerid,PINK,"Unbanned.");
}
return 1;
}