Possible way? - 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)
+--- Thread: Possible way? (
/showthread.php?tid=329324)
Possible way? -
COD - 28.03.2012
Fixed
Re: Possible way? -
Roel - 28.03.2012
Maybe you can use OnPlayerHit
Re: Possible way? -
antonio112 - 28.03.2012
You can use this function, from 0.3d:
pawn Код:
OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid);
For more info, read this, from sa-mp wiki and you'll probably find a way to do it. And yes, it is possible with SetPlayerVelocity.
https://sampwiki.blast.hk/wiki/OnPlayerTakeDamage