GetPlayerOccupiedVehicleSeat: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 15: | Line 15: | ||
outputChatBox ( "Someguy is not in a vehicle." ) | outputChatBox ( "Someguy is not in a vehicle." ) | ||
end</syntaxhighlight> | end</syntaxhighlight> | ||
==See Also== | |||
{{Player functions}} |
Revision as of 20:02, 20 May 2006
Description
This function returns an integer containing the number of the seat that the player is currently in, if any. This function returns false if the player is on foot, or the player doesn't exist.
Syntax
int getPlayerOccupiedVehicleSeat ( player player )
Required Arguments
- player: The player whose vehicle seat you're looking up.
Example
if ( vehicle = getPlayerOccupiedVehicle ( findPlayer ( "Someguy" ) ) ) outputChatBox ( "Someguy is in a vehicle seat ", getPlayerOccupiedVehicleSeat ( findPlayer ( "Someguy" ) ), "." ) else outputChatBox ( "Someguy is not in a vehicle." ) 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