IsPlayerChoking: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 2: | Line 2: | ||
{{Server client function}} | {{Server client function}} | ||
{{Deprecated}} | {{Deprecated}} | ||
Please use [[isPedChoking]] | |||
This function checks if the specified [[player]] is choking (coughing) or not. This happens as a result of weapons that produce smoke - smoke grenades, fire extinguisher and the spray can. | This function checks if the specified [[player]] is choking (coughing) or not. This happens as a result of weapons that produce smoke - smoke grenades, fire extinguisher and the spray can. | ||
Revision as of 19:45, 20 April 2011
This function is deprecated. This means that its use is discouraged and that it might not exist in future versions, but there should be a more generic way to perform what it does. | |
Please use isPedChoking
This function checks if the specified player is choking (coughing) or not. This happens as a result of weapons that produce smoke - smoke grenades, fire extinguisher and the spray can.
Syntax
bool isPlayerChoking ( player thePlayer )
Required Arguments
- thePlayer: The player you wish to check
Returns
Returns true if the player is choking, false otherwise.
Example
This example checks if a random player is choking or not, and if so displays a message in the chat box.
aPlayer = getRandomPlayer ( ) if ( isPlayerChoking ( aPlayer ) ) then outputChatBox ( getClientName ( aPlayer ) .. " is choking. Keep away from those cigarettes!" ) end
See Also
- getPlayerTeam
- getPlayerBlurLevel
- setPlayerBlurLevel
- getPlayerSerial
- forcePlayerMap
- getPlayerScriptDebugLevel
- getPlayerFromName
- getPlayerMoney
- getPlayerName
- getPlayerNametagColor
- getPlayerNametagText
- getPlayerPing
- getPlayerWantedLevel
- givePlayerMoney
- isPlayerMapForced
- isPlayerNametagShowing
- setPlayerHudComponentVisible
- setPlayerMoney
- setPlayerNametagColor
- setPlayerNametagShowing
- setPlayerNametagText
- takePlayerMoney
- countPlayersInTeam
- getPlayersInTeam
- isVoiceEnabled
- setControlState
- getControlState