SA-MP Forums Archive
Name fam 3d text help - 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)
+--- Thread: Name fam 3d text help (/showthread.php?tid=660776)



Name fam 3d text help - skiplovebra - 13.11.2018

This code helps me to see the 3d family on the player. But it is inserted 3d can someone help me?
Код:
new Text3D:NameFam[MAX_PLAYERS];
Код:
//onplayerload
NameFam[playerid] = Create3DTextLabel(" ", COLOR_WHITE, 0, 0, 0, 20.0, GetPlayerVirtualWorld(playerid));
	Attach3DTextLabelToPlayer(NameFam[playerid], playerid, 0.0, 0.0, -0.2);
	SetTimerEx("UpdateNameFamily", 1000, true, "i", playerid);
Код:
forward UpdateNameFamily(playerid);
public UpdateNameFamily(playerid)
{
	if(PlayerInfo[playerid][pFMember] != 255)
	{
	    new nfa[128];
		format(nfa, sizeof(nfa), "%s", FamilyInfo[PlayerInfo[playerid][pFMember]][FamilyName]);
		Update3DTextLabelText(NameFam[playerid], COLOR_WHITE, nfa);
	}
	else Update3DTextLabelText(NameFam[playerid], COLOR_WHITE, " ");
	return 1;
}
The image shows the error code



Re: Name fam 3d text help - AmirSavand - 13.11.2018

Quote:

This code helps me to see the 3d family on the player. But it is inserted 3d can someone help me?

What? Explain a bit more about your issue.


Re: Name fam 3d text help - khRamin78 - 13.11.2018

First of all use this ShowNameTags(0); if you need remove the normal samp name tags above player


Second you have to change the cordinat of X Y Z to make it in right place : like this just test and find which fits to you

PHP код:
Attach3DTextLabelToPlayer(NameFam[playerid], playerid0.00.02.0);