Banning an IP script
#2

I think you wanna ban an IP while he's not connected.Something like this:
pawn Код:
format(string,sizeof(string),"banip %s",tmp);
       SendRconCommand(string);
       SendRconCommand("reloadbans");
       GetPlayerName(playerid, sendername, sizeof(sendername));
       format(string, 256, "AdmCmd: %s has banned the IP: %s", sendername,tmp);
       ABroadCast(COLOR_LIGHTRED,string,1);
IsPlayerConnected is not needed.
Reply


Messages In This Thread
Banning an IP script - by Josh_Main - 09.06.2013, 12:57
Re: Banning an IP script - by Aly - 09.06.2013, 13:00
Re: Banning an IP script - by Vince - 09.06.2013, 13:00
Re: Banning an IP script - by Josh_Main - 09.06.2013, 13:12
Re: Banning an IP script - by Josh_Main - 09.06.2013, 13:37

Forum Jump:


Users browsing this thread: 3 Guest(s)