• Player Joined/Left Chat Script Help
    1 replies, posted
Ok, this is one of my first help requests on LUA, so can someone please tell me how to get lua tags? Is it [LUA] or what? Anyway this code doesnt work and I am new to lua so can someone please help me in fixing this up so it works? [CODE] function FirstSpawn( ply ) PrintMessage( HUD_PRINTTALK,"Player " .. ply:Nick() .. "(" .. ply:SteamID .. ") has joined the game." end hook.Add( "PlayerInitialSpawn", "playerInitialSpawn", FirstSpawn ) function PlayerDisconnect( ply ) PrintMessage( HUD_PRINTTALK,"Player " .. ply:Nick() .. "(" .. ply:SteamID .. ") has left the game." end hook.Add( "PlayerDisconnected", "playerDisconnected", PlayerDisconnect ) [/CODE]
You forgot to close the PrintMessage with ). And, it's ply:SteamID().
Sorry, you need to Log In to post a reply to this thread.