28.06.2013, 02:23
pawn Код:
public OnPlayerShootPlayer(Shooter,Target,Float:HealthLost,Float:ArmourLost)
{
new s[20], Float:Armour;
if(GetPlayerArmour(Target, Armour) >= 1)
{
format(s, 20, "+Damage %.0f", ArmourLost);
}
else
{
format(s, 20, "+Damage %.0f", HealthLost);
}
TextDrawSetString(GiveDamage[Target], s);
TextDrawShowForPlayer(Target, GiveDamage[Target]);
PlayerPlaySound(Target,17802,0.0,0.0,0.0);
SetTimerEx("DestruirTextoDraw", 1000, false, "i", Target);
return 1;
}