SA-MP Forums Archive
Help 3Dtextlabel - 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: Help 3Dtextlabel (/showthread.php?tid=109431)



Help 3Dtextlabel - KingstoN* - 20.11.2009

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


Re: Help 3Dtextlabel - ExoSanty - 20.11.2009

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


Re: Help 3Dtextlabel - miokie - 20.11.2009

Or just use

Attach3DTextLabelToPlayer()


Re: Help 3Dtextlabel - KingstoN* - 20.11.2009

thank you very much for all