PlayAudioStreamForAll help
#1

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
Reply
#2

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...
Reply
#3

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");
}
Reply
#4

Maybe you want this? http://pastebin.com/k5hzTGGN
Reply
#5

Thanks all for answering! :P

Quote:
Originally Posted by ReVo_
Посмотреть сообщение
Maybe you want this? http://pastebin.com/k5hzTGGN
Yeah, it's almost perfect! Thanks for this!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)