SA-MP Forums Archive
How do i setup an audio plugin? - 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: How do i setup an audio plugin? (/showthread.php?tid=281957)



How do i setup an audio plugin? - uprp - 08.09.2011

a simply audio plugin for IN CARS.

/play, /stop , and all that stuff

I have the includes.. just missing the info.

This is support, not request.


Thanks!

Helpers get a +rep cookie!!^^


Re: How do i setup an audio plugin? - Snipa - 08.09.2011

https://sampwiki.blast.hk/wiki/IsPlayerInAnyVehicle

Audio_Play(playeridi, audioid, false, false, false);

or w/e


Re: How do i setup an audio plugin? - uprp - 09.09.2011

Don't get it.. using strcmp.. please help.. even about connecting to FTP and such


Re: How do i setup an audio plugin? - uprp - 09.09.2011

48 hour bump from original time. Need this ASAP.


Re: How do i setup an audio plugin? - =WoR=G4M3Ov3r - 09.09.2011

What Snipa meant, is using IsPlayerInAnyVehicle in your script and under it, the necessary function that's included in the Audio plugin.


Re: How do i setup an audio plugin? - Voldemort - 09.09.2011

Here is some tips with what to start

pawn Код:
new AudioOn[MAX_VEHICLES]; // On/Off also use OnPlayerEnterVehicle or at OnPlayerStateChange to sync
new AudioSource[MAX_VEHICLES]; // Audio source for stream, when someone enter car starts to play source
new AudioOnForPlayer[MAX_PLAYERS]; //To check if player hear music from car if yes on exit stop
you can make some 1 dialog where is all commands - start,stop,pause,volume etc

And use Audio_PlayStreamed(playerid,Stream,false,true,fals e);

If you want make really great its abit complicated, just remember you need to resync when ever someone change source in a car, so if there is others they also hear