SA-MP Forums Archive
Hide Aduio Message - 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: Hide Aduio Message (/showthread.php?tid=410647)



Hide Audio Message - jakejohnsonusa - 26.01.2013

How can I, server-sidedly, Hide the audio message "Audio Stream: http://linkhere.mp3" I KNOW it's possible... maybe through an include.... Please DON'T tell me what they players can do to stop it for themselves (I know about that), what can I do to stop it for everyone?

Thanks in avvance : jakejohnsonusa


Re: Hide Aduio Message - SAMPHacker - 26.01.2013

PHP код:
for(new 0MAX_PLAYERSi++)
{
    if(
IsPlayerConnected(i))
    {
        
StopAudioStreamForPlayer(i);
    }




Re: Hide Aduio Message - jakejohnsonusa - 26.01.2013

Thanks, but that's not what I mean... I want the music... I DON'T want the annoying Message that is has in the Chat Box.


Re: Hide Aduio Message - iGetty - 26.01.2013

There's no way to set the player to do this.

You're going to have to tell them to /audiomsg in game.


Re: Hide Aduio Message - Threshold - 26.01.2013

Like explained... he doesn't want that...

A way around this is to use Incognito's Audio plugin, it will allow you to stream audio files to players without the annoyance of the message.

https://sampforum.blast.hk/showthread.php?tid=82162
Hope it works out for you...


Re: Hide Aduio Message - iGetty - 26.01.2013

Quote:
Originally Posted by BenzoAMG
Посмотреть сообщение
Like explained... he doesn't want that...

A way around this is to use Incognito's Audio plugin, it will allow you to stream audio files to players without the annoyance of the message.

https://sampforum.blast.hk/showthread.php?tid=82162
Hope it works out for you...
Yes, maybe he did say that, but there is no other way around it than downloading a plugin that you don't need, as SA-MP has built in functions..

Maybe just don't bother with the audio messages? What is it? One line of SendClientMessage, what's the problem with that?


Re: Hide Aduio Message - Threshold - 26.01.2013

Quote:
Originally Posted by iGetty
Посмотреть сообщение
Yes, maybe he did say that, but there is no other way around it than downloading a plugin that you don't need, as SA-MP has built in functions..

Maybe just don't bother with the audio messages? What is it? One line of SendClientMessage, what's the problem with that?
He never said anything about not giving him a plugin or include, so I gave him one. It's just one plugin, what's the problem with that? He wants an answer to solve his problem, and he has gotten one.


Re: Hide Aduio Message - jakejohnsonusa - 26.01.2013

It's that I'm working on an airhorn for Police Vehilces, and everytime they press it I don't want the message. I tried his plugin once, but I couldn't figure out how to stream a sound to where a player was.


Re: Hide Aduio Message - Threshold - 26.01.2013

Код:
Audio_Set3DPosition(playerid, handleid, Float:x, Float:y, Float:z, Float:distance);
Also remember, there is an airhorn ID in GTA by default. You could always try:
pawn Код:
PlayerPlaySound(playerid, 3201, 0, 0, 0);



Re: Hide Aduio Message - jakejohnsonusa - 26.01.2013

The problem is is whats the handle ID?