Weapon Damage Changed
#4

I make this script quicly, i don't know if it works :

PHP код:
public OnPlayerGiveDamage(playeriddamagedidFloatamountweaponidbodypart)
{
    if(
weaponid == 24// If the weapon is a deagle
    
{
          new 
Float:health;
          
GetPlayerHealth(damagedidhealth); // Get the player's health after the shot
          
health += amount// Add the damage amount at the player's health
          
SetPlayerHealth(damagedidhealth 25); // Removed 1/4 of player's health
    
}

Sorry for my bad english and, i repeat, i don't know if this script works ^^
Reply


Messages In This Thread
Weapon Damage Changed - by lwilson - 01.06.2014, 08:06
Re: Weapon Damage Changed - by Mihaitza97 - 01.06.2014, 08:29
Re: Weapon Damage Changed - by SyntaxQ - 01.06.2014, 08:33
Re : Weapon Damage Changed - by Sc0tt - 01.06.2014, 08:36
Re: Weapon Damage Changed - by Lordzy - 01.06.2014, 08:40

Forum Jump:


Users browsing this thread: 1 Guest(s)