Hello! I know you guys must have a lot of lua-inept members come through here, but I would really appreciate a bit of help with an admin alert script.
What I would like is to have this following code be for individual admins, based off of steamID, instead of all admins who join (so that different admins get different sounds and some not at all).
function AdminAlert( pl ) if pl:IsAdmin() then for k, v in pairs(player.GetAll()) do v:PrintMessage(HUD_PRINTCENTER,"Admin has joined the server!") v:ConCommand("play admin_alert.mp3") end end end hook.Add( "PlayerInitialSpawn", "playerInitialSpawn", AdminAlert )
Any help would be great!