[Tutorial] How to make an anti-teamkill -Easy- (with OPSP)
#9

You should also return the Armour.
pawn Code:
if(HealthLost > 0.0)
{
     new Float:hp;
     GetPlayerHealth(Target, hp);
     SetPlayerHealth(Target, hp + HealthLost);
}
if(ArmourLost > 0.0)
{
     new Float:Armour;
     GetPlayerHealth(Target, Armour);
     SetPlayerHealth(Target, Armour + HealthLost);
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)