21.09.2013, 13:52
Quote:
Well this isn't really important, don't know if it's meant to be like that but here we go:
Using PlayAudioStreamForPlayer in any vehicle will disable the default GTA:SA radio and play the selected stream. However on when using StopAudioStreamForPlayer to stop the audio stream, the stream stops normally but default radio remains off, need to re-enter vehicle to make the default radio playing back again. |
This can be fixed by getting the vehicleid and storing it in a variable. (OnPlayerStateChange)
Now this part will require a timer since there is no any functions to check if the song ended.
The interval should be exactly the same with the song duration else the trick won't work.
If the timer is called, Stop the audio streaming, remove player from vehicle and put it again in the last vehicle the player riding in by using the variable we created.
Sorry for my bad english