20.05.2012, 20:13
tenta assim:
pawn Код:
forward OnPlayerGiveDamage(playerid, damagedid, Float: amount, weaponid);
public OnPlayerGiveDamage(playerid, damagedid, Float: amount, weaponid)
{
new str[50];
format(str, sizeof str, "DAMAGE - %i",amount);
DAMAGEa = TextDrawCreate(171.000000, 388.000000, str);
TextDrawAlignment(DAMAGEa, 2);
TextDrawBackgroundColor(DAMAGEa, 255);
TextDrawFont(DAMAGEa, 2);
TextDrawLetterSize(DAMAGEa, 0.160000, 0.599999);
TextDrawColor(DAMAGEa, 16711935);
TextDrawSetOutline(DAMAGEa, 1);
TextDrawSetProportional(DAMAGEa, 1);
foreach (new i : Player)
{
TextDrawShowForPlayer(i, DAMAGEa);
}
SetTimer("DestruirTextoDraw",1000, false);
return 1;
}