04.02.2016, 16:30
hello , i've got a radio script which plays an audio stream . The only problem i have is that every time i pres F or ENTER the music stops , is there any way of stopping this ?
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if ((oldkeys & KEY_SECONDARY_ATTACK) && !(newkeys & KEY_SECONDARY_ATTACK))
{
StopAudioStreamForPlayer(playerid); // Stop the audio stream
}
return 1;
}