K4stic Posted March 18, 2013 Posted March 18, 2013 Guys help me pls how make if player addEventHandler("onClientVehicleEnter", root, if (seat == 0) and (sound) or (seat == 0) and (mysound) then end) to play music and to other's in car (the code not full that because i ask help) Giving a Fuck? Nope, That isn't in My Skill Set
PaiN^ Posted March 18, 2013 Posted March 18, 2013 He want's to play a sound when someone gets in a car, But he want's all players in the car to hear that sound " Keep Thinking Different . " - Steve Jops -------------------- Don't send me PMs asking for help, I Won't reply !
iPrestege Posted March 18, 2013 Posted March 18, 2013 If well : triggerClientEvent addEvent addEventHandler -- Use the event onVehicleEnter Server Side And The Sound Client And Trigger The Event When You Want To Play The Sound.
Ab-47 Posted March 19, 2013 Posted March 19, 2013 And you may also want to use: playSound with getPedOccupiedVehicle And now Aurora is back again, pm for more info. Ex. Lead dev & L6 Staff at AUR, NGC, MTA RP & SAA. Ex. Developer at Community of Social Gamers - CSG Ex Founder of International Gaming Community - IGC and Union of Individual Players- UIP Ab-47
X-SHADOW Posted March 19, 2013 Posted March 19, 2013 addEventHandler('onVehicleEnter', root, function ( ) triggerClientEvent(source, 'Music', source) end ) addEvent('Music', true) addEventHandler('Music', root, function ( ) playSound('soundPath', true) end ) --or getElementsByType to get all players then play theSound . My ingame nickname : Ops! -DeathMatch GameMode By Ops! : 5%
Ab-47 Posted March 19, 2013 Posted March 19, 2013 addEventHandler('onVehicleEnter', root, function ( ) triggerClientEvent(source, 'Music', source) end ) addEvent('Music', true) addEventHandler('Music', root, function ( ) playSound('soundPath', true) end ) --or getElementsByType to get all players then play theSound . >-> He want's to play a sound when someone gets in a car, But he want's all players in the car to hear that sound Your script will simply play a sound to the person who entered the vehicle or to everyone on the server. And now Aurora is back again, pm for more info. Ex. Lead dev & L6 Staff at AUR, NGC, MTA RP & SAA. Ex. Developer at Community of Social Gamers - CSG Ex Founder of International Gaming Community - IGC and Union of Individual Players- UIP Ab-47
X-SHADOW Posted March 19, 2013 Posted March 19, 2013 and also i told him he can use getElementsByType ! My ingame nickname : Ops! -DeathMatch GameMode By Ops! : 5%
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