29.08.2016, 19:46
As the title says.
The code is applying and doing the functions late, or it doesn't even do it.
When it does, It removes it fast.
The code is applying and doing the functions late, or it doesn't even do it.
When it does, It removes it fast.
Код:
public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid, bodypart) { new gString[128]; format(gString, sizeof gString, "{ff0000}-%.0f",amount); Delete3DTextLabel(PlayerDamage[playerid]); PlayerDamage[playerid] = Create3DTextLabel(gString, 0xFFFFFFFF, 0.0, 0.0, 0.0, 7.5, -1); Attach3DTextLabelToPlayer(PlayerDamage[playerid], playerid, 0.0, 0.0, 0.4); SetTimerEx("RemoveDamageLabel", 3000, false, "d", _:PlayerDamage[playerid]); return 1; } forward RemoveDamageLabel(Text3D:labelid); public RemoveDamageLabel(Text3D:labelid) { return Delete3DTextLabel(labelid); }