Detect which bodypart was the last one to get shot.
#1

How do I detect that what was the bodypart which last got damaged before the player died?
Reply
#2

pawn Код:
new last_bodypart[MAX_PLAYERS];

public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid, bodypart)
{
    last_bodypart[playerid] = bodypart;
}
Reply
#3

Thanks.
Reply
#4

Was that need a thread LOOL?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)