Functions
IsPlayerInWater
Description: Checking is player in water
Parameters: (playerid)
Returning: 1 if is, 0 if not
IsPlayerUnderWater
Description: Checking is player under water
Parameters: (playerid)
Returning: 1 if is, 0 if not
SetPlayerOxygenValue
Description: Sets the amount of the player's oxygen
Parameters: (playerid, Float:value)
Returning: 0 if is amount less than minimum
GetPlayerOxygenValue
Description: Returning current amount of player's oxygen
Parameters: (playerid)
Returning: Float of amount
SetPlayerMaxOxygenValue
Description: Sets the max amount of the player's oxygen
Parameters: (playerid, Float:value)
Returning: 0 if is amount less than minimum(100.0) and more than maximum(5000.0)
GetPlayerMaxOxygenValue
Description: Returning current maximum amount of player's oxygen
Parameters: (playerid)
Returning: Float of amount
GivePlayerOxygenValue
Description: It adds a certain amount of oxygen to the current amount
Parameters: (playerid, Float:value)
Returning: 0 if is amount less than 1.0
GetPlayerOxygenStatus
Description: Returning current status of player's oxygen
Parameters: (playerid)
Returning:
OXYGEN_NONE
,
OXYGEN_SPENDING
or
OXYGEN_REFILL