01.06.2014, 08:36
I make this script quicly, i don't know if it works :
Sorry for my bad english and, i repeat, i don't know if this script works ^^
PHP код:
public OnPlayerGiveDamage(playerid, damagedid, Float: amount, weaponid, bodypart)
{
if(weaponid == 24) // If the weapon is a deagle
{
new Float:health;
GetPlayerHealth(damagedid, health); // Get the player's health after the shot
health += amount; // Add the damage amount at the player's health
SetPlayerHealth(damagedid, health - 25); // Removed 1/4 of player's health
}
}