18.10.2009, 01:43
Well the way i've attached 3DTexts to my players is
then i'll use the cmd as an example
That should work and if you wish to change their 3dtext just use
Код:
new Text3D:Player[MAX_PLAYERS]; // This goes at the top of the script
Код:
if(strcmp(cmdtext, "/playerlabel", true) == 0) { Player[playerid] = Create3DTextLabel("Hello",COLOR_WHITE,0,0,0,15,0,1); Attach3DTextLabelToPlayer(Player[playerid],playerid,0,0,0.30); return 1; }
Код:
Update3DTextLabelText(Player[playerid],GetPlayerColor(playerid),"You updated me"); // Getplayercolor will only return a color if setplayercolor was used before