SA-MP Forums Archive
Audio Client Question - 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: Audio Client Question (/showthread.php?tid=361043)



Audio Client Question - Jstylezzz - 19.07.2012

Hi everyone,


I have a little question about incognito's audio plugin..

I try to use the plugin to stream music inside the Disco's, but the problem is that the standard club music, from GTA SA also stays on..
I tried Audio_StopRadio already, but the standard music stays on..

Does anyone know how to solve this?

PS. I considered posting this in the audio plugin tread, but the last post is already a month ago, so i didn't know if it was ok to bump..

Thanks in advance


Re: Audio Client Question - Dan. - 19.07.2012

Why dont you use:
pawn Код:
http://wiki.sa-mp.com/wiki/PlayAudioStreamForPlayer
And play the same stream for everybody when they enter the club.


Re: Audio Client Question - nepstep - 19.07.2012

Maybe if you try to play an invalid audio stream on the area as mentioned in an old thread by CiNyC
pawn Код:
PlayAudioStreamForPlayer(playerid, "_", 493.3904,-22.7223,1020.6797, 40.0, true);



Re: Audio Client Question - Jstylezzz - 19.07.2012

I dont use PlayAudioStreamForPlayer since that function gives irritating messages on the screen, and the audio plugin is alot easier to use in the scripts i use..
I Used that funciton before, that's why i switched to audio plugin..


Re: Audio Client Question - nepstep - 19.07.2012

Maybe try this one?
pawn Код:
stock StopMusic(playerid)
 {
 PlayerPlaySound(playerid, 1069, 0.0, 0.0, 0.0);
 }
or
pawn Код:
StopAudioStreamForPlayer(playerid);
Not sure if any gonna work
Although i think the first one i posted who CyNiC posted, it will work, but players will still get the Audio Stream message.


Re: Audio Client Question - Jstylezzz - 19.07.2012

Quote:
Originally Posted by nepstep
Посмотреть сообщение
Maybe try this one?
pawn Код:
stock StopMusic(playerid)
 {
 PlayerPlaySound(playerid, 1069, 0.0, 0.0, 0.0);
 }
or
pawn Код:
StopAudioStreamForPlayer(playerid);
Not sure if its gonna work
Good one, but it only works for 1 second though..
Anything i can do with that? xD


Re: Audio Client Question - nepstep - 19.07.2012

If it will work for one second only you could use a timer as long the player stays inside the interior but imagine with a lot of players would be lot inefficient and I don't recommend it at all


Re: Audio Client Question - Jstylezzz - 19.07.2012

Quote:
Originally Posted by nepstep
Посмотреть сообщение
If it will work for one second only you could use a timer as long the player stays inside the interior but imagine with a lot of players would be lot inefficient and I don't recommend it at all
I tried this xD
I set the timer every 1 MS, but then after 2 seconds the music comes again
I hope someone can help me find a solution
thanks for helping anyways, it could have worked


Re: Audio Client Question - Vince - 19.07.2012

Quote:
Originally Posted by Jari_Johnson*
Посмотреть сообщение
I dont use PlayAudioStreamForPlayer since that function gives irritating messages on the screen
And making all your players download a separate client is not irritating? Bitch please.


Re: Audio Client Question - nepstep - 19.07.2012

I think the CyNiCs way is the only one to go with.. even with the "Audio Stream" message..