Jump to content

Desativar Som original das armas


Recommended Posts

function toggleWeaponSounds_f ( )
    local enabled = isWorldSoundEnabled ( 5 ) 
    enabled       = not enabled 
   
    local state   = "enabled"

    if ( not enabled ) then
        state = "disabled"
    end
    --

    setWorldSoundEnabled ( 5, enabled ) 
    outputChatBox ( "Weapon sounds " .. state )
end
addCommandHandler ( "toggleweaponsounds", toggleWeaponSounds_f )

Com comando funciona, mas como faço pra ativar automático sem usar comando? 

Tipo ligo o mod e ja desativa os sons sem comando.

E como faço pro mod funcionar pra todo mundo, desativar o audio de todo mundo? Desde ja agradeço.

 

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...