PlayAudioStreamForPlayer Help
#1

When doing PlayAudioStreamForPlayer Is there a way to get rid of the "Audio Stream: mysoundlinkhere.mp3" ? It's a bit annoying.

Thanks in advance!
Reply
#2

Quote:
Originally Posted by jakejohnsonusa
Посмотреть сообщение
When doing PlayAudioStreamForPlayer Is there a way to get rid of the "Audio Stream: mysoundlinkhere.mp3" ? It's a bit annoying.

Thanks in advance!
I think the only way to do that is by modifying a_samp.ini
Reply
#3

There is no way to actually disable this message, unless you are willing to use Incognito's Audio plugin. However, you can type a command, I can't remember exactly what it is, but I have a feeling it's /audiomsg which toggles the status of the message, and unless you can convince every player that joins your server to type that, you may have to resort to the plugin.
Reply
#4

I would be willing to use his streamer, but how?

I need to convert the following code, I can't find how to include the location where to play the sound...

pawn Код:
if ((newkeys & KEY_CROUCH) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
        new Float:x;
        new Float:y;
        new Float:z;
        GetPlayerPos(playerid,x,y,z);
        for (new i = 0; i != MAX_PLAYERS; ++i)
        {
            if (IsPlayerConnected(i))
            {
               
                PlayAudioStreamForPlayer(i, "http://mysoundlinkhere.mp3", x, y, z, 3200, 1);
            }
        }
    }
Reply
#5

You can do this:

When someone enters a vehicle you can send them a message saying Hint: Use /audiomsg to disable "Now Streaming text" or something.
Reply
#6

Read here on how the code/plugin works.

https://sampforum.blast.hk/showthread.php?tid=82162
Reply
#7

I did, I know I need Audio_PlayStreamed and Audio_Set3DPosition but I don't understand the handleid... Anyone help me figure this out please?
Reply


Forum Jump:


Users browsing this thread: