MisterZ Posted January 11, 2015 Share Posted January 11, 2015 Jajaja vale mira en el Client donde están los valores en 900 ve regulandolos para que solo se escuche cuando estes al lado del player setSoundVolume(soundasd, 900) setSoundMaxDistance(soundasd, 900) Link to comment
Sasu Posted January 12, 2015 Share Posted January 12, 2015 Client: addEvent( "onMusica", true ) addEventHandler( "onMusica", root,function () local x, y, z = getElementPosition(source) local soundasd = playSound3D("sonido.mp3", x, y, z) setSoundVolume(soundasd, 1.0) attachElements(soundasd, source) setSoundMinDistance(soundasd, 1) setSoundMaxDistance(soundasd, 50) end) Server: addCommandHandler("sexo", function (playerSource) setPedAnimation ( playerSource, "sex", "sex_1_cum_w", 1, true, false, false ) triggerClientEvent( "onMusica", playerSource) end) Link to comment
lGalazArayal Posted January 12, 2015 Author Share Posted January 12, 2015 Client: addEvent( "onMusica", true ) addEventHandler( "onMusica", root,function () local x, y, z = getElementPosition(source) local soundasd = playSound3D("sonido.mp3", x, y, z) setSoundVolume(soundasd, 1.0) attachElements(soundasd, source) setSoundMinDistance(soundasd, 1) setSoundMaxDistance(soundasd, 50) end) Server: addCommandHandler("sexo", function (playerSource) setPedAnimation ( playerSource, "sex", "sex_1_cum_w", 1, true, false, false ) triggerClientEvent( "onMusica", playerSource) end) me sirvioooo muchas graciass mannn capoooo muchas gracias que te valla bien Link to comment
Recommended Posts