IPBan function, how? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: IPBan function, how? (
/showthread.php?tid=365277)
IPBan function, how? -
RedFusion - 02.08.2012
What functions should i use to create an ip-ban command/dialog?
Re: IPBan function, how? -
Roko_foko - 02.08.2012
I don't know if there is already function that bans players ip inside samp include, but you can make your self one.
GetPlayerIp to get the Ip-adress. Store the ip in some folder - same as you save player stats and OnPlayerConnect check if the player ip-adress is inside of the file.