Audio Client Question
#1

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

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

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

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

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

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

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

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

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)