Jump to content

Kill music?


ThePCGuy

Recommended Posts

  • Moderators

https://wiki.multitheftauto.com/wiki/PlaySound

https://wiki.multitheftauto.com/wiki/StopSound

Source: wiki_mta

  
local sound --I always make everything local, it's just my thing. 
  
function wasted (killer, weapon, bodypart)  
    sound = playSound("sounds/wasted.mp3") 
    --sound = playSound3D("sounds/wasted.mp3",0,0,0) works also for 3D 
end 
  
addEventHandler("onClientPlayerWasted", getLocalPlayer(), wasted) 
  
function stopMySound() 
        stopSound( sound ) 
end 
addCommandHandler ( "stopsound", stopMySound )  

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