• Show STEAM-ID upon Connect/Disconnect
    2 replies, posted
I saw a thread with the following code: [CODE]function FirstSpawn( ply ) PrintMessage( HUD_PRINTTALK, ply:Nick().. " entered the server, their SteamID is: " ..ply:SteamID() ) end hook.Add( "PlayerInitialSpawn", "playerInitialSpawn", FirstSpawn ) function PlayerDisconnect( ply ) PrintMessage( HUD_PRINTTALK, ply:Nick().. " has disconnected, their SteamID is: " ..ply:SteamID() ) end hook.Add( "PlayerDisconnected", "playerDisconnected", PlayerDisconnect )[/CODE] It said to put this into: lua/autorun/server but what should I name the file? Also, if anyone has a better version, let me know! [highlight](User was banned for this post ("wrong section" - postal))[/highlight]
Ugh. It doesn't matter what you name the file. As long as it is a lua file it will run just fine.
Cause lets face it, EVERYONE wants to have their steamid popped up and know whos who. If you need such a thing to find peoples steamid's to ban them, type status in console :P or if u got ulx and your mod admin etc you can see the steamid when someone leaves and joins by default... It dosnt have to be publiclly shown like this.
Sorry, you need to Log In to post a reply to this thread.