14.12.2012, 15:25
Where do you create your textdraw?
edit:
Here's how the code should be:
edit:
Here's how the code should be:
pawn Код:
public OnPlayerGiveDamage(playerid, damagedid, Float:amount, weaponid)
{
new str[40];
format(str, 40, "%.0f", amount);
TextDrawSetString(Textdraw0, str);
TextDrawShowForPlayer(playerid, Textdraw0);
SetTimerEx("hideplayertd", 2000, 0, "i", playerid)
return 1;
}
forward hideplayertd(p);
public hideplayertd(p)
{
TextDrawHideForPlayer(p, Textdraw0);
return 1;
}