04.05.2016, 13:16
I'm trying to Show the last bodypart which was shot OnPlayerDeath.
this my line under OnPlayerDeath -
I just set the bodypart Under OnPlayerTakeDamage, like
LastShot[playerid] = bodypart;
All this shows ingame is empty brackets where body part should appear.
this my line under OnPlayerDeath -
Код:
SendClientMessageToAllEx(-1, "{FF0000}%s(%d) Died (%s). Killed By: %s(%d) (%s).", ReturnName(playerid), playerid, LastShot[playerid], ReturnName(killerid), killerid, DeathReason[reason]);
Код:
// Body Parts define. #define WEAPON_BODY_PART_CHEST 3 #define WEAPON_BODY_PART_CROTCH 4 #define WEAPON_BODY_PART_LEFT_ARM 5 #define WEAPON_BODY_PART_RIGHT_ARM 6 #define WEAPON_BODY_PART_LEFT_LEG 7 #define WEAPON_BODY_PART_RIGHT_LEG 8 #define WEAPON_BODY_PART_HEAD 9
LastShot[playerid] = bodypart;
All this shows ingame is empty brackets where body part should appear.