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


Messages In This Thread
PlayAudioStreamForPlayer Automatically Stop - by spyro9696 - 08.02.2018, 11:01
Re: PlayAudioStreamForPlayer Automatically Stop - by Mugala - 08.02.2018, 11:09
Re: PlayAudioStreamForPlayer Automatically Stop - by spyro9696 - 08.02.2018, 11:16
Re: PlayAudioStreamForPlayer Automatically Stop - by solstice_ - 08.02.2018, 15:31
Re: PlayAudioStreamForPlayer Automatically Stop - by Mugala - 08.02.2018, 15:34
Re: PlayAudioStreamForPlayer Automatically Stop - by solstice_ - 08.02.2018, 15:36

Forum Jump:


Users browsing this thread: 1 Guest(s)