Skip to content

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.

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)

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"

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.")
end

GetPlayerDirt · GetPlayerGrime · SetPlayerBlood · the Dirt and blood group of the index