Simple Loop - Connect

How do I make a function and loop for player connect?

Edit: Found it. http://wiki.garrysmod.com/?title=Gamemode.PlayerConnect
Had to search for IP Address :stuck_out_tongue:

i dont really understand but i think you mean hooking:

[lua]hook.Add(“PlayerConnect”, “IPNAO”, function( name, address )
print( "Player " … name … " has joined from ip " … address )
end)[/lua]

Examples are usefull…

That is very unclear.
But just as a reference, if you’re reading this thread, he was referring to **[Gamemode.PlayerConnect

http://wiki.garrysmod.com/favicon.ico](http://wiki.garrysmod.com/?title=Gamemode.PlayerConnect)**

Which is just what i posted, :doh: