21.02.2015, 04:55
Quote:
Use TextDrawSetString to change the string of a textdraw.
pawn Код:
|
pawn Код:
new s[10];
format(s, sizeof s, "%f", amount);
TextDrawSetString(GiveDamage[issuerid], s);
For adding on damage simply use a player var.
pawn Код:
new Float:damage[MAX_PLAYERS];
public OnPlayerTakeDamage(...)
{
damage[issuerid] += amount;
new s[20];
format(s, sizeof s, "+ Damage %f", damage[issuerid]);
TextDrawSetString(TakeDamage[playerid], s);
}