Return a function after get shot or punch - 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: Return a function after get shot or punch (
/showthread.php?tid=182763)
Return a function after get shot or punch -
yakitashax - 12.10.2010
As example, if a player get an shot, or punch, kill this player or return any else function, as "SendClientMessage" %s took a shot. Or a function such as: if(playergetdamage(playerid)) return
---- Indentify as if the player took shot or punch
If anyone knows, please tell me.

Re: Return a function after get shot or punch -
Seven. - 12.10.2010
You could use OnPlayerUpdate(playerid) and check if the player lost any health