Quote:
Originally Posted by JustBored
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; }
|
hey i have one problem , i change Target to Shooter and it fine , but i have one problem in textdraw , the textdraw no showing outing damage , just showing 0 damage ,like this +Damage 0 , and that textdraw always showing in Target no in shooter . how to fix it .