Headshot Bugged
#3

I did do some testing with this guy and the problem with his script was with the bodypart parameter. Instead of calling the actual bodypart being hit, the script always called the code with bodypart as 1, which is not even a recognized bodypart as per the SA-MP wiki. The testing was performed by the OP and according to him, shooting all body parts on another player called the callback with bodypart as 1.

As per OP, the server also has lagcomp enabled so I don't know why the bodypart is always called as 1. The code (with relevant modifications) was tested under both OnPlayerTakeDamage and OnPlayerGiveDamage with the same result.

@Jeff: didn't know that is what it was. However, as stated above, the code never reached that part anyway.
Reply


Messages In This Thread
Headshot Bugged - by BlackLineCnR - 26.05.2018, 21:48
Re: Headshot Bugged - by Jefff - 26.05.2018, 22:03
Re: Headshot Bugged - by Cell_ - 26.05.2018, 23:26
Re: Headshot Bugged - by BlackLineCnR - 27.05.2018, 13:13
Re: Headshot Bugged - by Kaliber - 27.05.2018, 15:18
Re: Headshot Bugged - by BlackLineCnR - 27.05.2018, 19:24
Re: Headshot Bugged - by Mugala - 28.05.2018, 00:20
Re: Headshot Bugged - by GTLS - 28.05.2018, 05:15
Re: Headshot Bugged - by SubGames - 28.05.2018, 12:36

Forum Jump:


Users browsing this thread: 1 Guest(s)