SA-MP Forums Archive
a few question - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: a few question (/showthread.php?tid=580795)



a few question - newbman - 08.07.2015

If i want to play audio for all the server what should i do. And if i want to make sound for the vehicle engine. What should i do. I want make when the engine start it will play sound . and sound for the vehicle model that i want. And when the vehicle break . the sound will be diffenrent. Can you guys help me


Re: a few question - Stanford - 08.07.2015

Use
pawn Код:
PlayAudioStreamForPlayer(playerid, url[], Float:posX = 0.0, Float:posY = 0.0, Float:posZ = 0.0, Float:distance = 50.0, usepos = 0);
In order to play for all players, use a loop.
If you are willing to use a gta sound, use
pawn Код:
PlayerPlaySound(playerid, soundid, Float:x, Float:y, Float:z);
Sound IDs: https://sampwiki.blast.hk/wiki/SoundID

I hope I helped any feedback is appreciated


Re: a few question - newbman - 08.07.2015

Thanks, i will try it rep for you