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
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);
you will need a timer that sets the position every x milliseconds when a player moves