26.08.2010, 21:46
K i got pretty annoyed by this:
I did:
Top of script:
Command:
Then i did:
Now the problem is when player types /command2 the label still stays on player, it doesn't remove...
The thing i was trying to do is basically an admin duty system, like /command is like /adminduty
and it should say "on duty admin, dont attack bla bla" but when player types /command2 the label admin duty still stays above him
How to fix this?
I did:
Top of script:
Код:
new Text3D:label[MAX_PLAYERS];
Код:
if (strcmp("/command", cmdtext, true, 10) == 0) { label[playerid] = Create3DTextLabel("Text",COLOR_BRIGHTRED,30.0,40.0,50.0,40.0,0); Attach3DTextLabelToPlayer(label[playerid], playerid, 0.0, 0.0, 0.7); return 1; }
Код:
if (strcmp("/command2", cmdtext, true, 10) == 0) { Delete3DTextLabel(label[playerid]); return 1; }
The thing i was trying to do is basically an admin duty system, like /command is like /adminduty
and it should say "on duty admin, dont attack bla bla" but when player types /command2 the label admin duty still stays above him
How to fix this?