IsPlayerInjured
Whether the player has an injury - anywhere, or on one part.
Syntax
Section titled “Syntax”IsPlayerInjured(pid [, part])| Parameter | Type | |
|---|---|---|
pid |
number | the player |
part |
number | a body part 1 .. 6; without it, any part (optional) |
Returns
Section titled “Returns”boolean
Example
Section titled “Example”if IsPlayerInjured(pid, BODY_PART_ARM_RIGHT) then SendClientMessage(pid, COLOUR_RED, "Your sword arm is hurt.") endSee also
Section titled “See also”GetPlayerInjuries · GetBodyPartName · the Vitals, stats and skills group of the index
