How do i setup an audio plugin?
#6

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
Reply


Messages In This Thread
How do i setup an audio plugin? - by uprp - 08.09.2011, 20:14
Re: How do i setup an audio plugin? - by Snipa - 08.09.2011, 21:50
Re: How do i setup an audio plugin? - by uprp - 09.09.2011, 03:32
Re: How do i setup an audio plugin? - by uprp - 09.09.2011, 20:30
Re: How do i setup an audio plugin? - by =WoR=G4M3Ov3r - 09.09.2011, 20:34
Re: How do i setup an audio plugin? - by Voldemort - 09.09.2011, 20:49

Forum Jump:


Users browsing this thread: 3 Guest(s)