PlayAudioStreamForAll help - 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: PlayAudioStreamForAll help (
/showthread.php?tid=363676)
PlayAudioStreamForAll help -
Ld Est Ld - 28.07.2012
Hello.
I have one problem.
I have a stock "PlayAudioStreamForAll" and I made a command for it and this command can be used by Reporters.
However, if reporters type command: /music [songname] then the music will play for all players..
Now, I have stuck into one problem.
Is it somehow possible to make like, if Playerstate is in car then the music will start for him.
Example:
Reporter: Song: Sean Paul - ...(remix)
Player in car: Listening...
Player on foot: Not listening.
If the song already is playing and player is going into car, then the music resumes for him.
Sorry for bad English
Re: PlayAudioStreamForAll help -
Cjgogo - 28.07.2012
It's kinda impossible to resume a song,if you stop it,then when you will play it again,it will take it from the beggining,if that's what you mean...
Re: PlayAudioStreamForAll help -
.FuneraL. - 28.07.2012
If execute song's for all players in server, make one looping:
pawn Код:
for(new i = 0; i < MAX_PLAYERS; i++)
{
PlayAudioStreamForPlayer(i, "URL Song");
}
Re: PlayAudioStreamForAll help -
ReVo_ - 28.07.2012
Maybe you want this?
http://pastebin.com/k5hzTGGN
Re: PlayAudioStreamForAll help -
Ld Est Ld - 28.07.2012
Thanks all for answering! :P
Quote:
Originally Posted by ReVo_
|
Yeah, it's almost perfect! Thanks for this!