Logging ip's?
#1

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

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
Reply
#3

Thanks!!

Gonna try
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)