3D TEXT LABEL for each player - 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: 3D TEXT LABEL for each player (
/showthread.php?tid=404782)
3D TEXT LABEL for each player -
Fergy - 04.01.2013
Hi guys,
how i can make a 3d text label with name and ID of user for each player, that is connect to server and after this i can edit it ?
Re: 3D TEXT LABEL for each player -
mineralo - 04.01.2013
pawn Код:
new PlayerText3D:Player3d[MAX_PLAYERS];
OnPlayerConnect(playerid)
{
new string[256],name[128];
GetPlayerName(playerid,name,sizeof(name));
format(string,256,"%s (%d)",name,playerid);
Player3d[playerid] = CreatePlayer3DTextLabel(playerid,string,0x008080FF,0,0,0,40.0);
Attach3DTextLabelToPlayer(Player3d[playerid], playerid, 0.0, 0.0, 0.7);
return 1;
}
later you can edit it with this function
UpdatePlayer3DTextLabelText(playerid, PlayerText3D:id, color, text[])
Re: 3D TEXT LABEL for each player -
Fergy - 04.01.2013
Thanks
Re: 3D TEXT LABEL for each player -
mineralo - 04.01.2013
I edited it, read it now