15.07.2014, 00:24
pawn Код:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart)
{
if(weaponid == 24 ) // Detecta se a arma й uma eagle
{
new Float:Life = GetPlayerHealth(playerid, Life);
SetPlayerHealth(playerid, Life /2); // Diminue a vida pela metade
}
return 1;
}