[Question]Detect falling players
#1

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?
Reply
#2

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;
}
Reply
#3

Thanks, m8.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)