SA-MP Forums Archive
Logging ip's? - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Logging ip's? (/showthread.php?tid=180673)



Logging ip's? - Face9000 - 02.10.2010

Hi all,is there any way or filterscript to log in a .txt file all ip's that players have when access to server?


Re: Logging ip's? - Mauzen - 02.10.2010

It should be no big problem.
Just open a file with append mode in OnPlayerConnect, write the players ip into it, and close it.
append a "\r\n" at the end of every ip via format, to write every ip in a new line.

https://sampwiki.blast.hk/wiki/Fopen
https://sampwiki.blast.hk/wiki/Fwrite
https://sampwiki.blast.hk/wiki/Fclose

https://sampwiki.blast.hk/wiki/GetPlayerIp


Re: Logging ip's? - Face9000 - 02.10.2010

Thanks!!

Gonna try