StopAudioStreamForPlayer

From SA-MP Wiki

Jump to: navigation, search


StopAudioStreamForPlayer was added in SA-MP 0.3x This function was added in SA-MP 0.3d and will not work in earlier versions!
Stops the current audio stream for a player.


Parameters:
(playerid)
playeridThe player you want to stop the audio stream for.


ReturnsThis function doesn't return a specific value


Example

public OnPlayerStateChange(playerid, newstate, oldstate)
{
        // If the player exits a vehicle
	if(oldstate == PLAYER_STATE_DRIVER || oldstate == PLAYER_STATE_PASSENGER) 
	{
	    StopAudioStreamForPlayer(playerid); // Stop the audio stream
	}
	return 1;
}

Related Functions

The following functions may be useful, as they are related to this function in one way or another.

Personal tools
In other languages