StopAudioStreamForPlayer
From SA-MP Wiki
(Difference between revisions)
Revision as of 05:39, 27 September 2011 Smithy (Talk | contribs) (This is going to make the radio keep playing if they die/spectate.) ← Previous diff |
Revision as of 15:53, 1 February 2014 Connor Mead (Talk | contribs) Next diff → |
||
Line 3: | Line 3: | ||
{{AddedIn0.3d|function}} | {{AddedIn0.3d|function}} | ||
- | |||
- | [[ru:StopAudioStreamForPlayer]] | ||
{{Description|Stops the current audio stream for a player.}} | {{Description|Stops the current audio stream for a player.}} | ||
Line 31: | Line 29: | ||
[[Category:Scripting Functions]] | [[Category:Scripting Functions]] | ||
+ | |||
+ | [[fr:StopAudioStreamForPlayer]] | ||
+ | [[ru:StopAudioStreamForPlayer]] |
Revision as of 15:53, 1 February 2014
Description:
Stops the current audio stream for a player.
(playerid)
playerid | The player you want to stop the audio stream for. |
Return Values:
This function does not return any specific values.
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.
- PlayAudioStreamForPlayer: Plays a audio stream for a player.
- PlayerPlaySound: Play a sound for a player.