02.05.2016, 18:03
(
Last edited by Ivan_Ino; 11/05/2016 at 07:20 PM.
)
Hey everyone, I give you my first release include, I hope that will come in handy and you will be satisfied..
Short
-- This is include which giving you permission to controll player's oxygen bar.
New Callbacks
Functions
Status
Requests
Credits
Changes
v1.1
Bugs
v1.1
Video
https://www.youtube.com/watch?v=Fqy0...ature=*********
Download
(Version 2.0) Include + Example FS - GitHub ( https://github.com/Ino42O/OxygenController )
Short
-- This is include which giving you permission to controll player's oxygen bar.
Code:
#include <OxygenController>
- OnPlayerEnterInWater(playerid);
- OnPlayerEnterUnderWater(playerid);
- OnPlayerOutFromWater(playerid);
Functions
- IsPlayerInWater(playerid);
Checking is player on water ( returning: 0 / 1 )
- IsPlayerUnderWater(playerid);
Checking is player under water ( returning: 0 / 1 )
- SetPlayerOxygenValue(playerid, Float:Value);
Sets player's oxygen value
- GetPlayerOxygenValue(playerid);
Get currect oxygen value ( returning: Float )
- SetPlayerMaxOxygenValue(playerid, Float:Value);
Sets player's max oxygen value ( Default MAX is 5000.0 )
- GetPlayerMaxOxygenValue(playerid);
Get currect max oxygen value ( returning: Float )
- GivePlayerOxygenValue(playerid, Float:Value);
Adding value on currect oxygen
- GetPlayerOxygenStatus(playerid);
Returning status
- GetPlayerDepth(playerid); *NEW
Returning player's depth under water ( returning: Float )
Status
- OXYGEN_NONE
- OXYGEN_SPENDING
- OXYGEN_REFILL
Requests
- ProgressBar include ( https://sampforum.blast.hk/showthread.php?tid=537468 )
- SKY plugin ( http://github.com/oscar-broman/sky )
- ColAndreas plugin ( http://github.com/Pottus/ColAndreas )
Credits
- Created by: Ino
- SKY plugin: Slice
- ColAndreas plugin: ColAndreas team
- ProgressBar include: Toribio / Southclaw
Changes
v1.1
- Support for last ColAndreas version
- Optimizied
- Out of beta, now is stable version
- Added new function for check player's depth under water GetPlayerDepth(playerid);
- Precise taking / giving oxygen value
Bugs
v1.1
- Fixed bugs with health bar
- Fixed bugs about player's death
- Fixed all about healths
Video
https://www.youtube.com/watch?v=Fqy0...ature=*********
Download
(Version 2.0) Include + Example FS - GitHub ( https://github.com/Ino42O/OxygenController )