GetPlayerArmor

From Multi Theft Auto: Wiki
Revision as of 09:53, 14 August 2006 by EAi (talk | contribs)
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

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