[Question]Detect falling players - 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: [Question]Detect falling players (
/showthread.php?tid=472367)
[Question]Detect falling players -
Zex Tan - 28.10.2013
Title says it all, I'm about to check player which a falling from a certain altitude. Like fall off from a building and losses HP, but is it possible to detect it?
Re: [Question]Detect falling players -
Pottus - 28.10.2013
Yeah you can detect players falling you can estimate the height they fell by damage.
pawn Код:
stock IsPlayerFalling(playerid) //true if player is falling with a closed parachute
{
new index = GetPlayerAnimationIndex(playerid);
if(index >= 958 && index <= 979 || index == 1130 || index == 1195 || index == 1132) return 1;
return 0;
}
Re: [Question]Detect falling players -
Zex Tan - 28.10.2013
Thanks, m8.