roddydennvor Posted October 29, 2014 Share Posted October 29, 2014 How to make script , when player join server , they login and they will hear the sound ? sorry bad english Link to comment
Woovie Posted October 29, 2014 Share Posted October 29, 2014 --Server-side function triggerSound() triggerClientEvent(v,"playBeep",v) end addEventHandler("onPlayerLogin", root, triggerSound) --Client-side function playBeep() playSound("beep.mp3",false) end addEvent("playBeep",true) addEventHandler("playBeep",root,playBeep) Link to comment
MTA Team botder Posted October 29, 2014 MTA Team Share Posted October 29, 2014 function triggerSound() triggerClientEvent(v,"playBeep",v) end Why did you use "v"? function triggerSound() triggerClientEvent(source,"playBeep",resourceRoot) end Link to comment
Woovie Posted October 29, 2014 Share Posted October 29, 2014 function triggerSound() triggerClientEvent(v,"playBeep",v) end Why did you use "v"? function triggerSound() triggerClientEvent(source,"playBeep",resourceRoot) end That's for me to know and you to figure out! But really, this is exactly why copy-pasting code is a bad idea. Link to comment
roddydennvor Posted October 29, 2014 Author Share Posted October 29, 2014 thx for example ... Very helpfull Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now