09.10.2014, 11:52
PHP код:
return 0;
}
public OnPlayerGiveDamage(playerid, damagedid, Float: amount, weaponid, bodypart)
{
if(weaponid == 0 && GetPlayerFightingStyle(playerid) == FIGHT_STYLE_BOXING || weaponid == 1 && GetPlayerFightingStyle(playerid) == FIGHT_STYLE_BOXING)
{
new Float:hArmor; GetPlayerArmour(damagedid, hArmor);
if(hArmor <= 0)
{
new hit = strval(RPJL(playerid, JOB_BOXER));
new Float:OldHP; GetPlayerHealth(damagedid, OldHP);
SetPlayerHealth(damagedid, OldHP-((hit*2)-2));
}
}
return 1;
}