CMD Like ( If player gets shot) - 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: CMD Like ( If player gets shot) (
/showthread.php?tid=379165)
CMD Like ( If player gets shot) -
ShawtyyMacJunior - 20.09.2012
Is there some sort of thing That gives this :
If Player gets shot by a shotgun, he loses -40 health?
Im pretty good with scrripting, but ive never seen such command i wanna know if there is one
if(IsPlayerAimingAt) is not what im talking about. Im talking about when the player gets shot
Re: CMD Like ( If player gets shot) -
Djole1337 - 20.09.2012
It's something like this?
pawn Код:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid)
{
new
Float:health;
GetPlayerHealth(playerid, health);
if(weaponid == 25) SetPlayerHealth(playerid, health-40);
return 1;
}