3D text problem!
#1

Код:
new Text3D:label[MAX_PLAYERS];
 
public OnPlayerCommandText(playerid, cmdtext[])
{
	if (strcmp("/adminonduty", cmdtext, true, 10) == 0)
	{
                label[playerid] = Create3DTextLabel("Admin on  Duty!",0x008080FF,30.0,40.0,50.0,40.0,0);
                Attach3DTextLabelToPlayer(label[playerid], playerid, 0.0, 0.0, 0.7);
                return 1;
	}
	return 0;
}


public OnPlayerDisconnect(playerid, reason)
{
    Delete3DTextLabel(label[playerid]);
    return 1;
}
Why when player disconect , 3D text not destroy and attach on another player?
Reply
#2

Put this onplayerdisconnect:
pawn Код:
Update3DTextLabelText(label, 0xFFFFFFFF, " ");
Reply
#3

Quote:
Originally Posted by Clive
Посмотреть сообщение
Put this onplayerdisconnect:
pawn Код:
Update3DTextLabelText(label, 0xFFFFFFFF, " ");
i think this will just change the text to " " but does it delete created 3Dtextlabel ?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)