/unbanip command not working.
#3

Quote:
Originally Posted by Mikep.
Why use sscanf? I see no point.

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;
}
Also you have to reloadbans to reload samp.ban.
Thanks
Reply


Messages In This Thread
/unbanip command not working. - by _Vortex - 18.09.2009, 22:26
Re: /unbanip command not working. - by Mikep. - 18.09.2009, 23:09
Re: /unbanip command not working. - by _Vortex - 18.09.2009, 23:33

Forum Jump:


Users browsing this thread: 1 Guest(s)