Detect if player is in under water?
#1

Heey all,

How can i detect if player is under water?

Thanks Admigo
Reply
#2

You can detect if a player is swimming in water via their animation, or you can detect if a player is below sea level (X,Y,0.00)
Reply
#3

Maybe it can help you

http://forum.sa-mp.com/showthread.ph...PlayerSwimming
Reply
#4

Quote:
Originally Posted by Joe Staff
Посмотреть сообщение
You can detect if a player is swimming in water via their animation, or you can detect if a player is below sea level (X,Y,0.00)
Or detect both for swimming.

Check if their animation is swimming, and then check their position, if it's below sea level, chances are they're swimming underwater.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)