Try this..
resource.AddFile("sound/admin_alert.mp3")
function AdminAlert( pl )
local advancedtable = { "STEAM_0:1:1234567" = "admin_alert.mp3", "STEAM_0:1:9876543" = "admin_alert.mp3" }
for k, v in pairs( advancedtable ) do
if pl:SteamID() == k then
if not ULib.fileExists( "sound/" .. v ) then
ULib.tsayError( pl, "That sound doesn't exist on the server!", true )
return
end
umsg.Start( "ulib_sound" )
umsg.String( Sound( v ) )
umsg.End()
ULib.tsay(_, "Admin (" .. pl:Nick() .. ") has joined the server!")
end
end
end
hook.Add( "PlayerInitialSpawn", "playerInitialSpawn", AdminAlert )
Untested...
If you want to add more admins, just do it like the example. "STEAMID" = "sound file". Separate each entry with a comma.
edit: Also, I have taken the liberty to rewrite most of this to use ULib; It makes things 100% easier and I assume you have it installed.