GetPlayerArmor: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
This function returns a float that contains the current armor for the specified [[player]]. | This function returns a float that contains the current armor for the specified [[player]]. | ||
Line 10: | Line 9: | ||
==Example== | ==Example== | ||
This example gets health of the player called 'someguy' and shows it in the chat | |||
tmpplayer = getPlayerFromNick ( "someguy" ) | <syntaxhighlight lang="lua">tmpplayer = getPlayerFromNick ( "someguy" ) | ||
armor = getPlayerArmor ( tmpplayer ) | armor = getPlayerArmor ( tmpplayer ) | ||
outputChatBox ( "The player's armor is: " .. armor )</syntaxhighlight> | outputChatBox ( "The player's armor is: " .. armor )</syntaxhighlight> |
Revision as of 09:53, 14 August 2006
This function returns a float that contains the current armor for the specified player.
Syntax
float getPlayerArmor ( player player )
Required Arguments
- player: The player whose armor you want to check
Example
This example gets health of the player called 'someguy' and shows it in the chat
tmpplayer = getPlayerFromNick ( "someguy" ) armor = getPlayerArmor ( tmpplayer ) outputChatBox ( "The player's armor is: " .. armor )
See Also
- forcePlayerMap
- getAlivePlayers
- getDeadPlayers
- getPlayerACInfo
- getPlayerAnnounceValue
- getPlayerBlurLevel
- getPlayerCount
- getPlayerFromName
- getPlayerIdleTime
- getPlayerIP
- getPlayerMoney
- getPlayerName
- getPlayerNametagColor
- getPlayerNametagText
- getPlayerPing
- getPlayerScriptDebugLevel
- getPlayerSerial
- getPlayerTeam
- getPlayerVersion
- getPlayerWantedLevel
- getRandomPlayer
- givePlayerMoney
- isPlayerMapForced
- isPlayerMuted
- isPlayerNametagShowing
- isVoiceEnabled
- redirectPlayer
- resendPlayerACInfo
- resendPlayerModInfo
- setPlayerAnnounceValue
- setPlayerBlurLevel
- setPlayerHudComponentVisible
- setPlayerMoney
- setPlayerMuted
- setPlayerName
- setPlayerNametagColor
- setPlayerNametagShowing
- setPlayerNametagText
- setPlayerScriptDebugLevel
- setPlayerTeam
- setPlayerVoiceBroadcastTo
- setPlayerVoiceIgnoreFrom
- setPlayerWantedLevel
- spawnPlayer
- takePlayerMoney
- takePlayerScreenShot