SetPlayerArmor

From Multi Theft Auto: Wiki
Revision as of 08:36, 29 March 2006 by Vandalite (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


Dialog-information.png This article needs checking.

Reason(s): Is Armor an int or a float? What is the maximum Armor value?

Description

This function allows you to set the armor value of a player. This function will return false if an invalid player is specified, or the armor value specified is out of acceptable range.

Syntax

bool setPlayerArmor ( player player, float armor )

Required Arguments

  • player: the player whose armor you want to modify
  • armor: the amount of armor you want to set on the player.

Example

if ( setPlayerArmor ( findPlayer ( "SomeGuy" ), 0 ) ) then
  serverChat ( "Sorry Someguy, no armor for you! " )
end