SA-MP Forums Archive
Don't take good damage. - 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: Don't take good damage. (/showthread.php?tid=463139)



Don't take good damage. - Kapone21 - 10.09.2013

pawn Код:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid)
{
    if(PlayerFalled[playerid] == true)
    {
    new Float:health;
    GetPlayerHealth(playerid,health);                  
    SetPlayerHealth (playerid, amount);
    }  
    return 1;
}
If i type SetPlayerHealth (playerid, amount + health); // he give EXTRA health ( amount) I want to make SIMPLE to don't take damage only that