Jump to content

Can someone give me these?


GamerDeMTA

Recommended Posts

Posted

This will work?

SERVER

addEventHandler("onClientPlayerWasted", root, 
triggerClientEvent ("Client",root) 
      end 
end) 

CLIENT

function ClientSide() 
playSound ("no.mp3") 
end 
addEvent("Client",true, ClientSide ) 
addEventHandler("Client",root, ClientSide ) 

Posted
This will work?

SERVER

addEventHandler("onClientPlayerWasted", root, 
triggerClientEvent ("Client",root) 
      end 
end) 

CLIENT

function ClientSide() 
playSound ("no.mp3") 
end 
addEvent("Client",true, ClientSide ) 
addEventHandler("Client",root, ClientSide ) 

No, you want only the player can listen to the sound or all players? when the player die?

Posted

Your server-side is wrong, but it should work:

addEventHandler("onPlayerWasted", root, 
    function () 
        triggerClientEvent ("Client",root) 
    end) 

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