18.09.2009, 22:26
Hey, I made a unban ip command, and it's not removeing the IP from samp.ban..
Here's the code:
Any ideas?
Here's the code:
pawn Код:
dcmd_unbanip(playerid,params[])
{
new ip[21], string[128];
if(pInfo[playerid][Level] < 3) return SendClientMessage(playerid,COLOR_RED,"You must be level 3 to unban someone!");
if(sscanf(params, "s", ip)) return SendClientMessage(playerid,COLOR_WHITE,"Usage: /unbanip [ip]");
format(string, sizeof(string), "unbanip %s", ip);
SendRconCommand(string);
SendClientMessage(playerid,COLOR_LIGHTGREEN,"IP unbanned.");
return 1;
}