-- Server Side --
function stfu ( player )
if isObjectInACLGroup ("user."..getAccountName ( getPlayerAccount ( player ) ), aclGetGroup ( "Admin" ) ) then
outputChatBox( "Sounds StartedBy "..getPlayerName(player).." :#FF8000 Shut The **** UP!", root, 255, 255, 255, true )
triggerClientEvent("stfu", root)
end
end
addCommandHandler("stfu", stfu)
-- Client Side --
addEvent( "stfu", true )
addEventHandler( "stfu", root,
function( )
if isElement ( sound ) then
destroyElement ( sound )
end
sound = playSound("sounds/stfu.mp3")
end
)