PDA

View Full Version : Detect which bodypart was the last one to get shot.


Ritzy2K
03/05/2016, 06:52 PM
How do I detect that what was the bodypart which last got damaged before the player died?

Gammix
03/05/2016, 06:54 PM
new last_bodypart[MAX_PLAYERS];

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

Ritzy2K
03/05/2016, 07:15 PM
Thanks.

jlalt
03/05/2016, 07:20 PM
Was that need a thread LOOL?