Skip to content

GetPlayerAlcohol

The player’s blood-alcohol level, 0 to 1.

Each drink adds its alcohol content × [combat] alcohol_per_content; time takes [combat] alcohol_decay off per second. Drunk from [combat] drunk_threshold up, sober again from half of it down (OnPlayerDrunk).

GetPlayerAlcohol(pid)
Parameter Type
pid number the player

number - 0 .. 1

if GetPlayerAlcohol(pid) > 0.2 then SendClientMessage(pid, COLOUR_SERVER, "Steady on.") end

IsPlayerDrunk · SetPlayerAlcohol · OnPlayerDrunk · the Buffs and the drink group of the index