09.01.2011, 19:07
Hey, try this:
if(strcmp(cmd, "/unban", true) == 0)
{
if(PlayerInfo[playerid][Level] >= 4)
{
new IP,tmp[285],string[285];
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_RED, "Usage: /unbanip <IP>");
IP = strval(tmp);
format(string,sizeof(string),"unbanip %s",IP);
SendRconCommand(string);
} else {
Msg(playerid,COLOR_RED,"* You can not use this command !");
}
return 1;
}
if(strcmp(cmd, "/unban", true) == 0)
{
if(PlayerInfo[playerid][Level] >= 4)
{
new IP,tmp[285],string[285];
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_RED, "Usage: /unbanip <IP>");
IP = strval(tmp);
format(string,sizeof(string),"unbanip %s",IP);
SendRconCommand(string);
} else {
Msg(playerid,COLOR_RED,"* You can not use this command !");
}
return 1;
}