Jump to content

Tirar Som Das Armas ao Logar


Recommended Posts

Tentei por pra quando o jogador logar, automaticamente tirar o som das armas, porem eu tentei com onPlayerLogin, e sem sucesso, ajude-me : (

function toggleWeaponSounds_f ( )
    local enabled = isWorldSoundEnabled ( 5 ) -- We place this variable here for checking.
    setWorldSoundEnabled ( 5, not enabled ) -- And here the toggling happens.
end
addCommandHandler ( "teste", toggleWeaponSounds_f )

 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...