If question

Sup Guys

How i make a IF question how If ulx superadmin joined server play sound(“sound/adminjoin.mp3”) and everyone needs to hear this.

thx for every help!

Here’s a very simplistic version.
[lua]
hook.Add(“PlayerInitialSpawn”, “ULX_JoinSound”, function( ply )
if ply:IsSuperAdmin() then
for k, v in pairs( player.GetAll() ) do v:EmitSound(“sound/adminjoin.mp3”) end
end
end)
[/lua]

Thanks Dude :slight_smile: