SA-MP Forums Archive
Hello 3D Label [Request] - 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: Hello 3D Label [Request] (/showthread.php?tid=334990)



Hello 3D Label [Request] - Infinity90 - 16.04.2012

Hello! I was wanting a 3D label that says the players ID due to I have the Tags Off so name tags are not visible so i was wanting a 3D label with that players ID. If anyone does that, I will +Rep Thanks!


Re: Hello 3D Label [Request] - Shetch - 16.04.2012

This will create a 3D text label once a player spawns.

Код:
public OnPlayerSpawn(playerid)
{
	new string[128], Float:X, Float:Y, Float:Z;
	GetPlayerPos(playerid, X, Y, Z);
	format(string, sizeof(string), "Playerid: %d", playerid);
	Create3DTextLabel(string, COLOR_WHITE, X, Y, Z, 10, 0);
	return 1;
}



Re: Hello 3D Label [Request] - Emci_Funtik - 16.04.2012

Quote:
Originally Posted by Shetch
Посмотреть сообщение
This will create a 3D text label once a player spawns.

Код:
public OnPlayerSpawn(playerid)
{
	new string[128], Float:X, Float:Y, Float:Z;
	GetPlayerPos(playerid, X, Y, Z);
	format(string, sizeof(string), "Playerid: %d", playerid);
	Create3DTextLabel(string, COLOR_WHITE, X, Y, Z, 10, 0);
	return 1;
}
You don't attach it...


Re: Hello 3D Label [Request] - Kaczmi - 16.04.2012

Use this: https://sampwiki.blast.hk/wiki/Attach3DTextLabelToPlayer