SA-MP Forums Archive
Problem 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: Problem Audio Plugin (/showthread.php?tid=521815)



Problem Audio Plugin - Hantex. - 24.06.2014

Hi guys, I have a problem with the audio plugin that is when I put the music in the game and a new player connects, the player that connects not hear the music previously set. How do I sync the player that connects?


Re: Problem Audio Plugin - Clad - 24.06.2014

Quote:
Originally Posted by Hantex.
Посмотреть сообщение
Hi guys, I have a problem with the audio plugin that is when I put the music in the game and a new player connects, the player that connects not hear the music previously set. How do I sync the player that connects?
Simply add this.
pawn Код:
PlayAudioStreamForPlayer(playerid, "http://listen.radionomy.com/so--hits.m3u");
On any place you want


Re: Problem Audio Plugin - Hantex. - 24.06.2014

Quote:
Originally Posted by Clad
Посмотреть сообщение
Simply add this.
pawn Код:
PlayAudioStreamForPlayer(playerid, "http://listen.radionomy.com/so--hits.m3u");
On any place you want
I use the audio plugin and I need that when the player connect into server hears music synchronized also the position (in seconds).


Re: Problem Audio Plugin - Clad - 24.06.2014

Quote:
Originally Posted by Hantex.
Посмотреть сообщение
I use the audio plugin and I need that when the player connect into server hears music synchronized also the position (in seconds).
Add it on
pawn Код:
public OnPlayerConnect