Any way to get oxygen level?
#1

Hey guys,
whenever you start to dive you will start to loose some oxygen (check the bar).
Any way to get the oxygen level of a player?

thnx
Reply
#2

Erhmm detect when the players anim is the same as he's swimming, then set a timer to make a var to count down... (:
Reply
#3

I was thinking about something like that some days ago.
First, find all the diving animations IDs. Second, find the exact time that SAMP makes you spend underwater before die.
Then you've to check if the player's using an underwater animation, then check every second if he's still underwater, subtracting that time to the amount of GTA's stardard diving time.
Reply
#4

ye I already was affraid to do that with a timer. Hmmpf. Okido, going to script a bit and look for the time.
thnx guys, repped.
Reply
#5

Timers are not 100 percent accurate. There is an includes that makes them accurate though.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)