SA-MP Forums Archive
Detect which bodypart was the last one to get shot. - 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: Detect which bodypart was the last one to get shot. (/showthread.php?tid=606391)



Detect which bodypart was the last one to get shot. - Ritzy2K - 03.05.2016

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


Re: Detect which bodypart was the last one to get shot. - Gammix - 03.05.2016

pawn Код:
new last_bodypart[MAX_PLAYERS];

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



Re: Detect which bodypart was the last one to get shot. - Ritzy2K - 03.05.2016

Thanks.


Re: Detect which bodypart was the last one to get shot. - jlalt - 03.05.2016

Was that need a thread LOOL?