28.06.2013, 04:17
Well, try this, never tested
Edit: i edited the code of JustBored.
Код:
public OnPlayerShootPlayer(Shooter,Target,Float:HealthLost,Float:ArmourLost) { new s[20], Float:Armour; if(GetPlayerArmour(Target, Armour) >= 1) { format(s, 20, "+Damage %d", ArmourLost); } else { format(s, 20, "+Damage %d", HealthLost); } TextDrawSetString(GiveDamage[Target], s); TextDrawShowForPlayer(Shooter, GiveDamage[Target]); PlayerPlaySound(Shooter,17802,0.0,0.0,0.0); SetTimerEx("DestruirTextoDraw", 1000, false, "i", Shooter); return 1; }