SA-MP Forums Archive
PlayerPlaySound - 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: PlayerPlaySound (/showthread.php?tid=567923)



PlayerPlaySound - Infamous - 17.03.2015

Hi there,

Does anyone know of a way in which I can play two or more soundid's at the same time with PlayerPlaySound?

In single player if a sound played whilst another was currently active (like a siren) the first sound will play quieter and then continue on full volume once the overlapping soundid has finished.

I have tried to re-create the above using timers but it's just terrible.

Edit: maybe this would be better suited in the scripting help section, if an admin could move it please.


Re: PlayerPlaySound - ReD_HunTeR - 17.03.2015

maybe use timer?

pawn Код:
PlayerPlayerSound(playerid....
SetTimerEx("PlayAnother",....

forward PlayerAnother(playerid);
public PlayerAnother(playerid)
{
   PlayerPlayerSound(playerid...
   return 1;
}



Re: PlayerPlaySound - Infamous - 17.03.2015

I have tried timers but it's just really inefficient. i was hoping that there maybe an unofficial fix out there somewhere.