Help! Ive made an IG radio streaming, but if leaving car the radio keeps playing!
#4

pawn Code:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
    if(newstate == PLAYER_STATE_ONFOOT)
    {
        if(oldstate == PLAYER_STATE_DRIVER || oldstate == PLAYER_STATE_PASSENGER)
        {
            StopAudioStreamForPlayer(playerid);
        }
    }
    return 1;
}
Just add this to you're script.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)