OnPlayerTakeDamage - bodypart parameter - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP (
https://sampforum.blast.hk/forumdisplay.php?fid=3)
+--- Forum: Bug Reports (
https://sampforum.blast.hk/forumdisplay.php?fid=20)
+--- Thread: OnPlayerTakeDamage - bodypart parameter (
/showthread.php?tid=511816)
OnPlayerTakeDamage - bodypart parameter -
Salim_Karaja - 07.05.2014
When onplayertakedamage event is called, the bodypart parameter is always 1,
even when I shoot at diffrent places, I've debugged it like this;
pawn Код:
public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid, bodypart)
{
printf("bodypart = %d", bodypart);
// rest of the code ..
return 1;
}
Re: OnPlayerTakeDamage - bodypart parameter -
Jochemd - 08.05.2014
Works fine for me, so I guess you're desynced or something