GetPlayerArmor
Jump to navigation
Jump to search
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
Returns
A float with the armor, false if a invalid player was given.
Example
This example outputs the amount of armor the player who calls the function 'showArmor' currently has.
function showArmor( player ) local armor = getPlayerArmor(player) outputChatBox("Your armor: "..armor) end addCommandHandler("showArmor", showArmor)
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