Damage help!
#2

Try this
pawn Код:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid)
{
   if(GetPlayerArmour(playerid)<1)
   {
    new Float:ARM;
    GetPlayerArmour(playerid, ARM);
    if(weaponid == 24) SetPlayerArmour(playerid, ARM-40);//DesertEagle
   }
   else
   {
    new Float:HP
    GetPlayerHealth(playerid,HP);
    if(weaponid == 24) SetPlayerHealth(playerid, HP-40);//DesertEagle
    }
    return 1;
}
//Like that use for other also.
Sorry if there's a mistake because I didnt test/compile this.
Reply


Messages In This Thread
Damage help! - by Zachlive - 14.09.2012, 00:55
Re: Damage help! - by Lordzy - 14.09.2012, 01:05
Re: Damage help! - by Zachlive - 14.09.2012, 01:28
Re: Damage help! - by Zachlive - 14.09.2012, 21:57
Re: Damage help! - by clarencecuzz - 14.09.2012, 22:57
Re: Damage help! - by SuperViper - 14.09.2012, 23:22
Re: Damage help! - by KoczkaHUN - 14.09.2012, 23:32

Forum Jump:


Users browsing this thread: 1 Guest(s)