PlayAudioStreamForPlayer Automatically Stop
#1

Hello, is there a way to stop automatically the PlayAudioStreamForPlayer when the music is finished?
When I enter in a vehicle, I can't hear radio for this reason. Even if the music ends, it is as if it were always there.
This is the source:

Quote:

if (strcmp("/nabbo", cmdtext, true, 10) == 0)
{
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DANCE4);
SetPlayerSkin(playerid, 5);
PlayAudioStreamForPlayer(playerid, "http://vol11.music-bazaar.com/samples/vol11/530/530749/preview-21f0c6b555.mp3.mp3");
GameTextForPlayer(playerid, "~w~Sei diventato un ~g~Nabbo",3000,4);
PlayerPlaySound(playerid, 1055, 0.0,0.0,0.0);
new pname[MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, sizeof(pname));
new string[ 128 ];
format(string, sizeof(string), "{FFFFFF}|**| {FF0000}%s(ID:%d) и diventato un Nabbo con {DFDF00}({00FF00}/nabbo{DFDF00}) {FFFFFF}|**|", pname, playerid);
SendClientMessageToAll(0xFFFFFFFF, string);
return 1;
}

Reply
#2

it's stops automatically when the music is finished but you have to re-enter in the vehicle to hear a radio.
we can't do anything about this.
Reply
#3

Ok...
Reply
#4

Quote:
Originally Posted by Mugalito
Посмотреть сообщение
it's stops automatically when the music is finished but you have to re-enter in the vehicle to hear a radio.
we can't do anything about this.
Can you even read or you just going around and shitposting?

Quote:
Originally Posted by spyro9696
Посмотреть сообщение
Even if the music ends, it is as if it were always there.
Reply
#5

Quote:
Originally Posted by willbedie
Посмотреть сообщение
Can you even read or you just going around and shitposting?
actually I'm helping the community, including u.
and I wrote a correct thing, now stop biting me please.
Reply
#6

Quote:
Originally Posted by Mugalito
Посмотреть сообщение
actually I'm helping the community, including u.
and I wrote a correct thing, now stop biting me please.
I see you're active and helping the community but make sure to read the full post first
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)