03.08.2017, 11:24
PHP код:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart)
{
new Float:HP;
GetPlayerHealth(playerid, HP);
if(weaponid == 5) SetPlayerHealth(playerid, HP-10);
return 1;
}