18.09.2009, 23:09
Why use sscanf? I see no point.
Also you have to reloadbans to reload samp.ban.
pawn Код:
dcmd_unbanip(playerid,params[])
{
new string[128];
if(pInfo[playerid][Level] < 3) return SendClientMessage(playerid,COLOR_RED,"You must be level 3 to unban someone!");
if(!strlen(params)) return SendClientMessage(playerid,COLOR_WHITE,"Usage: /unbanip [ip]");
format(string, sizeof(string), "unbanip %s", params);
SendRconCommand(string);
SendRconCommand("reloadbans");
SendClientMessage(playerid,COLOR_LIGHTGREEN,"IP unbanned.");
return 1;
}