SA-MP Forums Archive
DetectingPlayerSwim - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: DetectingPlayerSwim (/showthread.php?tid=313246)



DetectingPlayerSwim - Ballu Miaa - 25.01.2012

Hello everyone,

I was thinking to punish the Player's of Team_1 of my GM who are found to be swimming for more then 10 seconds.

I can make everything but the problem arises when i try to check the Player if he's swimming or not. Do anyone got any suggestions for this?

Thanks
Ballu Miaa



Re: DetectingPlayerSwim - [ABK]Antonio - 25.01.2012

Get their animation and check if it's one of the swimming ones would probably work


Re: DetectingPlayerSwim - Whitetiger - 25.01.2012

use https://sampwiki.blast.hk/wiki/GetPlayerAnimationIndex


Re: DetectingPlayerSwim - MP2 - 25.01.2012

There are some IsPlayerSwimming functions on these forums, search.