21.07.2016, 19:25
Hello, I need help with AFK 3D text label, code is working, but 3D text isn't delete when player resume.
And when player resume 3D text is still showing..
PHP код:
new Text3D:PlayerAFKlabel[MAX_PLAYERS];
PHP код:
format(string,sizeof(string),"AFK: %i minutes - %i seconds.",PlayerData[playerid][AFKmin],PlayerData[playerid][AFKsec]);
PlayerAFKlabel[playerid] = Create3DTextLabel(string,WHITE,0.0,0.0,0.0,20,-1,0);
Attach3DTextLabelToPlayer(PlayerAFKlabel[playerid],playerid,0.0,0.5,0.0);
PHP код:
Delete3DTextLabel(PlayerAFKlabel[playerid]);