The wiki says PlayerConnect is shared, if it is, you can use that to get it when people join the game you are in. If that doesn't work, you can use gm_gevents.
[editline]09:00PM[/editline]
PlayerConnect doesn't appear to work clientside. gm_gevents is the only other way I know of.
[b][url=http://wiki.garrysmod.com/?title=Player.IPAddress]Player.IPAddress [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]
You could run a console command on the client to fetch the ip?
[QUOTE=theholygod;21253685][b][url=http://wiki.garrysmod.com/?title=Player.IPAddress]Player.IPAddress [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]
You could run a console command on the client to fetch the ip?[/QUOTE]
He said from the client, and unless he's the owner of the server, that won't work.
Sorry, I was assuming he was writing a gamemode, my bad.
Sorry, you need to Log In to post a reply to this thread.