SA-MP Forums Archive
Damage Control - 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: Damage Control (/showthread.php?tid=466942)



Damage Control - Nofear192 - 30.09.2013

Hello Sa-mp Community

I need Help in my Damage Control I have Made idk if it will work or not :/


Код:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid)
{
if(issuerid != INVALID_PLAYER_ID)
{
new Float: health;
GetPlayerHealth(playerid, health);
if(weaponid == 1)
SetPlayerHealth(playerid,health-5);
if(weaponid == 16)