30.05.2014, 11:20
hi all...
i got a little bug here... when my player type /godmode on, the 3D text showed. but, when they typed /godmode off, the 3D text doesn't removed.... but the godmode off textdraw showed... can anyone fix this problem?
i got a little bug here... when my player type /godmode on, the 3D text showed. but, when they typed /godmode off, the 3D text doesn't removed.... but the godmode off textdraw showed... can anyone fix this problem?
pawn Код:
//somewhere in my script
new Text3D:godtext[MAX_PLAYERS];
//on my /godmode on script
godtext[playerid] = Create3DTextLabel("GOD MODE {0000FF}ON",COLOR_GREEN,0,0,0,40,-1,1);
Attach3DTextLabelToPlayer(godtext[playerid], playerid, 0.0, 0.0, 0.3);
//on my godmode off script
Delete3DTextLabel(godtext[playerid]);