09.01.2015, 22:32
So I made a global variable.. new 3DTexteadLabel[MAX_PLAYERS];
I created a new 3DText label and attached it to the player's head so everyone could see it.
There's one little problem, when I destroy someone elses DeadLabel it destroys everyone's label. My code is completely fine.
Creating the label:
Destroying the label:
I created a new 3DText label and attached it to the player's head so everyone could see it.
There's one little problem, when I destroy someone elses DeadLabel it destroys everyone's label. My code is completely fine.
Creating the label:
pawn Код:
DeadLabel[playerid] = Create3DTextLabel("(( This player is dead ))", -1, 0.0, 0.0, 0.0, 7.0, 0);
Attach3DTextLabelToPlayer(DeadLabel[playerid], playerid, 0.0, 0.0, 0.5);
pawn Код:
Delete3DTextLabel(DeadLabel[playerid]);