SA-MP Forums Archive
PlayAudioStreamForPlayer Automatically Stop - 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: PlayAudioStreamForPlayer Automatically Stop (/showthread.php?tid=649390)



PlayAudioStreamForPlayer Automatically Stop - spyro9696 - 08.02.2018

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;
}




Re: PlayAudioStreamForPlayer Automatically Stop - Mugala - 08.02.2018

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.


Re: PlayAudioStreamForPlayer Automatically Stop - spyro9696 - 08.02.2018

Ok...


Re: PlayAudioStreamForPlayer Automatically Stop - solstice_ - 08.02.2018

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.



Re: PlayAudioStreamForPlayer Automatically Stop - Mugala - 08.02.2018

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.


Re: PlayAudioStreamForPlayer Automatically Stop - solstice_ - 08.02.2018

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