27.05.2012, 13:46
Ok - the basics of the problem: The 3DTextLabel creates fine and works fine - But it doesn't delete.
At the top of script:
Inside a command:
-- It then calls a timer of 7 seconds, the timer has this inside: (It works, as my HP does change)
- Thanks, I hope you realise what I have done wrong / or maybe a SA-MP bug?
It is not deleting, and the timer is definetly called, as my HP changes.
At the top of script:
Код:
new Text3D:SpawnProtectionLabel[MAX_PLAYERS]; new SpawnProtectionLabelActive[MAX_PLAYERS];
Код:
SpawnProtectionLabel[playerid] = Create3DTextLabel("{FF0000}Spawnkill Protection Enabled", 0x008080FF, 30.0, 40.0, 50.0, 40.0, 0, 0); Attach3DTextLabelToPlayer(SpawnProtectionLabel[playerid], playerid, 0, 0, 0.5); SpawnProtectionLabelActive[playerid] = 1;
Код:
SetPlayerHealth(playerid, 100); TextDrawHideForPlayer(playerid, SpawnProtection); Delete3DTextLabel(SpawnProtectionLabel[playerid]); SpawnProtectionLabelActive[playerid] = 0;
It is not deleting, and the timer is definetly called, as my HP changes.