Posts: 918
Threads: 125
Joined: Nov 2010
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
Posts: 2,322
Threads: 260
Joined: Jul 2010
Reputation:
0
Erhmm detect when the players anim is the same as he's swimming, then set a timer to make a var to count down... (:
Posts: 237
Threads: 18
Joined: Mar 2010
Reputation:
0
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.
Posts: 918
Threads: 125
Joined: Nov 2010
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.
Posts: 340
Threads: 44
Joined: Feb 2012
Reputation:
0
Timers are not 100 percent accurate. There is an includes that makes them accurate though.