• Simple Loop - Connect
    3 replies, posted
How do I make a function and loop for player connect? Edit: Found it. [URL="http://wiki.garrysmod.com/?title=Gamemode.PlayerConnect"]http://wiki.garrysmod.com/?title=Gamemode.PlayerConnect[/URL] Had to search for IP Address :P
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 [B][URL="http://wiki.garrysmod.com/?title=Gamemode.PlayerConnect"]Gamemode.PlayerConnect [IMG]http://wiki.garrysmod.com/favicon.ico[/IMG][/URL][/B]
Which is just what i posted, :doh:
Sorry, you need to Log In to post a reply to this thread.