SA-MP Forums Archive
find player IP's when not connected - 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: find player IP's when not connected (/showthread.php?tid=215400)



find player IP's when not connected - [Ask]G_Sk8er - 23.01.2011

hello

Im trying to make an IRC command which shows all used IP's by 1 player, for example:
!playerips [Ask]Sk8er
> IP's used by [Ask]Sk8er: ..., ..., ...

I made a command that shows the player's ip only when he is in-game. And this command should find the IP from a text file in my server's directory which includes all joined players with their ip's..

Here is the code for my ip finding command, dnno if it's usefull for what I wanna do, can some1 gives some hints and tips plz? D:

http://pastebin.com/PQyF5khB


Re: find player IP's when not connected - [MWR]Blood - 23.01.2011

When the player leaves, make a function which gets his IP and saves it to a file(for example).


Re: find player IP's when not connected - Code_Red - 23.01.2011

Save every players IP after he log's in and then just check it with dini/yini/fopen