3D TEXT LABEL for each player
#1

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 ?
Reply
#2

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[])
Reply
#3

Thanks
Reply
#4

I edited it, read it now
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)