GetPlayerArmor: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
Line 4: Line 4:


==Syntax==
==Syntax==
float [[getPlayerArmor]] ( [[player]] player )
<syntaxhighlight lang="lua">float getPlayerArmor ( player player )</syntaxhighlight>


===Required Arguments===
===Required Arguments===
Line 10: Line 10:


==Example==
==Example==
armor = [[getPlayerArmor]] ( [[findPlayer]] ( "Someguy" ) )
<syntaxhighlight lang="lua">armor = getPlayerArmor ( findPlayer ( "Someguy" ) )
[[serverChat]] ( "Someguy's current Armor: ", armor, "." )
outputChatBox ( "Someguy's current Armor: ", armor, "." )</syntaxhighlight>

Revision as of 03:35, 20 May 2006

Description

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

armor = getPlayerArmor ( findPlayer ( "Someguy" ) )
outputChatBox ( "Someguy's current Armor: ", armor, "." )