OnPlayerImpact - 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: OnPlayerImpact (
/showthread.php?tid=168866)
OnPlayerImpact -
Duck - 17.08.2010
I found this function somewhere, It blocks the normal function when a player is hit, Like:
* Duck punches playerid
Clicks on the Attack/Punch/Shoot button
OnPlayerImpact (Animid, pChance //Like, 50% change the player is hit, 50% change the player isnt.);
Then when the player ISNT hit, He automatically jumps away.
Does this function exist..?