26.07.2009, 05:26
use a database or just txt doc, and instead of Ban(playerid); make your own function weather it adds the ip to the database or ads the ip to a file.
then OnPlayerConnect, make a function that does a loop reading every line of the file, or every row in the database. And if the ip matches any one in there, SendClientMessage(playerid, COLOR, "You're BANNNNNNNNNNNNNED!!!!!!!!!!!!!!"); Kick(playerid);
then OnPlayerConnect, make a function that does a loop reading every line of the file, or every row in the database. And if the ip matches any one in there, SendClientMessage(playerid, COLOR, "You're BANNNNNNNNNNNNNED!!!!!!!!!!!!!!"); Kick(playerid);