StopAudioStreamForPlayer FR

From SA-MP Wiki

(Difference between revisions)
Jump to: navigation, search

Revision as of 15:53, 1 February 2014



StopAudioStreamForPlayer FR was added in SA-MP 0.3d This FRfonction was added in SA-MP 0.3d and will not work in earlier versions!


Description:

Stoppe l'écoute du streaming(flux) audio courant d'un joueur.


Paramètres:
(playerid)
playeridLe joueur à qui vous voulez stopper l'écoute du streaming(flux) audio.


Return Values:

This function does not return any specific values.


Exemple

public OnPlayerStateChange(playerid, newstate, oldstate)
{
        // Si un joueur quitte un véhicule
	if(oldstate == PLAYER_STATE_DRIVER || oldstate == PLAYER_STATE_PASSENGER) 
	{
	    StopAudioStreamForPlayer(playerid); // On stoppe l'écoute du flux audio
	}
	return 1;
}

Fonctions Relatives

Les fonctions suivantes peuvent être utiles car elles sont indirectement ou directement liées a cette fonction.

In other languages