08.02.2018, 11:01
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:
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; } |