SA-MP Forums Archive
3D text problem! - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: 3D text problem! (/showthread.php?tid=230326)



3D text problem! - dud - 23.02.2011

Код:
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?


Re: 3D text problem! - HyperZ - 23.02.2011

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



Re: 3D text problem! - dud - 23.02.2011

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 ?