Skip to content

GetPlayerBleedingTime

How many more seconds the player bleeds.

The seconds until the last open wound stops by itself; 0 when not bleeding. With GetPlayerBleeding it is what SetPlayerBleeding takes back - a mode that keeps a character’s wounds across sessions saves both (SetPlayerInjuries has the whole recipe).

GetPlayerBleedingTime(pid)
Parameter Type
pid number the player

number - seconds; 0 = not bleeding

local rate, seconds = GetPlayerBleeding(pid), GetPlayerBleedingTime(pid)
if rate > 0 then SendClientMessage(pid, COLOR_RED, string.format("You will bleed for %d more seconds.", seconds)) end

GetPlayerBleeding · SetPlayerBleeding · SetPlayerInjuries · the Vitals group of the index