GetPlayerBlood
How bloody a player is - their skin and their bloodiest piece of clothing.
At one zone, or at the bloodiest zone when zone is left out. As their game last reported it.
Syntax
Section titled “Syntax”GetPlayerBlood(pid [, zone])| Parameter | Type | |
|---|---|---|
pid |
number | the player |
zone |
string|number | "head", "torso", "arm_left", "arm_right", "leg_left", "leg_right" (or a BODY_PART_* number); left out or "all": the bloodiest zone (optional) |
Returns
Section titled “Returns”number, number | nil, string - the skin’s blood and the bloodiest worn piece’s at the zone; nil and "not connected", or nil and "unknown zone"
Example
Section titled “Example”local skin, clothes = GetPlayerBlood(pid)if clothes >= 0.25 and IsPlayerInZone(pid, town_gate) then SendClientMessage(pid, COLOR_RED, "The guard eyes the blood on your clothes.")endSee also
Section titled “See also”GetPlayerDirt · GetPlayerGrime · SetPlayerBlood · the Dirt and blood group of the index
