Jump to content

help please


Kenix

Recommended Posts

I have made a script that when at the player of 90 hp plays a sound of knock of heart. But the script doesn't work help please!

  
local HP = getLocalPlayer() 
heartsoundPlayer = function() 
        local localHealth = getElementHealth(HP) 
        if localHealth < 90 then 
        playSound("heart.mp3", false) 
         setSoundVolume(sound, 2.5) -- set the sound volume to 50% 
        end 
      end 
addEventHandler("onClientPlayerDamage", HP, heartsoundPlayer) 
  

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