SA-MP Forums Archive
New client weapon shooting? - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: New client weapon shooting? (/showthread.php?tid=97268)



New client weapon shooting? - kevin974 - 13.09.2009

Would it be passable to make it so we can detect what park of the body the player is shot at?

Ex:
public OnPlayerGettingShot(playerid)
{
if(shot == HEAD_SHOT);
else if(shot == LEFTARM_SHOT);
}




Re: New client weapon shooting? - Sergei - 13.09.2009

OnPlayerDamage(playerid,shooter,weapon,bodypart,Fl oat:damage)

Would be nice callback

Detectable parts are head, torso, right/left arm/leg.


Re: New client weapon shooting? - Calgon - 13.09.2009

This would work well for anticheats etc.


Respuesta: New client weapon shooting? - anonymousx - 31.10.2010

If this callback will be added in a new version, it will be very usefull for anticheats. No more fucking Healthhackers in our servers.