Posts: 2,203
Threads: 154
Joined: Oct 2009
Reputation:
0
IsPlayerInWater(playerid)
GetPlayerPos x y z
if player pos 0 or -[SOME AMMOUNT] player is in water
Posts: 1,164
Threads: 20
Joined: Oct 2008
Reputation:
0
Wrong, there are positions that goes below the Z Pos 0 (Sea Level), such the hunter quarry bottom, the sewers at Los Santos, etcetera, so the code above is not accurate at all.
Posts: 157
Threads: 15
Joined: Sep 2009
Reputation:
0
My code based on animations and it's very accurate
Posts: 791
Threads: 93
Joined: Oct 2009
Reputation:
0
Yes.. accurate.. With OnPlayerUpdate and with 400++ player it wont be accurate for server...
Posts: 488
Threads: 33
Joined: Mar 2009
Reputation:
0
I don't think it was intended to be used in OnPlayerUpdate. A command that checks all the players to see what they are currently doing.