From Garry's Mod
Executes when a player connects to the server.
Players IP Address
prints a message to the chatbox when a player joins the game
function GM:PlayerConnect( name, ip ) PrintMessage( HUD_PRINTTALK, name .. " has joined the game." ) end
if a person with the name "Garry :D" joins the game, a message in the chatbox will say "Garry :D has joined the game."