• How to show someones steam ID when they leave.
    3 replies, posted
I'm running the ulx admin mod and I'm wondering if there is someway to show a players steam ID when they leave. Any help would be much appreciated as I am fairly new to Lua.
[QUOTE=an angry elde;41739043]I'm running the ulx admin mod and I'm wondering if there is someway to show a players steam ID when they leave. Any help would be much appreciated as I am fairly new to Lua.[/QUOTE] This is a player leave/join message script, I've modified it to show steam ID in chat when they leave for you. Let me know how it goes [url]http://tanglesgaming.com/playerjoin.zip[/url]
Let me show you how to do it, instead of giving it to you. :) [code] hook.Add("PlayerDisconnected", "ShowSteamID", function(ply) for k,v in pairs(player.GetAll()) do v:PrintMessage(HUD_PRINTTALK, "[Server] "..ply:Nick().." has just left the server! STEAMID: "..ply:SteamID().."!") end end) [/code] Used server side.
Thanks a lot selfdestruk it works great!
Sorry, you need to Log In to post a reply to this thread.