01.06.2014, 08:33
I'm not sure if this will work...
This should increase the health by 25.0 whenever deagle causes more than or equal to 50 damage..
pawn Код:
public OnPlayerTakeDamage( playerid, issuerid, Float:amount, weaponid )
{
new Float:h;
if (weaponid == 24)
{
if (amount >= 50)
{
GetPlayerHealth(playerid, h);
SetPlayerHealth(playerid, h + 25.0);
}
}
return 1;
}