Help 3Dtextlabel
#1

I am wanting to create a kind of chat in 3Dtextlabel, that when a player talk, the message Excritos in 3D on your head, after some time disappear, I'm just getting the text to stay in your head when the player go

currently reads:

Code:
format(string, sizeof(string), "%s diz: %s", GetPlayerNameEx(playerid), text);
			ProxDetector(20.0, playerid, string,COLOR_WHITE,COLOR_WHITE,COLOR_WHITE,COLOR_WHITE,COLOR_WHITE);
new text_info[256];
			Delete3DTextLabel(chatTextInfo[playerid]);
			new Float:x,Float:y,Float:z;
  		  GetPlayerPos(playerid,x,y,z);
			format(text_info,256,"[%s diz: %s]",GetPlayerNameEx(playerid),text);
		  chatTextInfo[playerid] = Create3DTextLabel(text_info,COLOR_WHITE,x,y,z+1.50,20.0,0,1);
		  SetTimerEx("Delete3DTextLabel", 3500, false, "i", playerid);
but obviously, the text is not in your head when you walk

Help
Reply
#2

you will need a timer that sets the position every x milliseconds when a player moves
Reply
#3

Or just use

Attach3DTextLabelToPlayer()
Reply
#4

thank you very much for all
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)