SA-MP Forums Archive
Player 3D labels - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Player 3D labels (/showthread.php?tid=147274)



Player 3D labels - Mikep. - 11.05.2010

Are player 3D labels destroyed when the player leaves the server?


Re: Player 3D labels - Killa_ - 11.05.2010

Nope


Re: Player 3D labels - Mikep. - 11.05.2010

Why doesn't this work..?

pawn Код:
format(textstring, sizeof(textstring), "MODEL: %i\nOBJECTID: %i", objectid, i);
objects[i][label] = CreatePlayer3DTextLabel(playerid, textstring, TEXTCOLOR, px, py, pz, 100, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0);
But this does..

pawn Код:
format(textstring, sizeof(textstring), "MODEL: %i\nOBJECTID: %i", objectid, i);
objects[i][label] = CreatePlayer3DTextLabel(playerid, "gdjkakfga", TEXTCOLOR, px, py, pz, 100, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0);



Re: Player 3D labels - Killa_ - 11.05.2010

Do you only want one player to see the 3D Text Label? because i cant really tell what you intend to do there, however try this.

pawn Код:
format(textstring, sizeof(textstring), "MODEL: %i\nOBJECTID: %i", objectid, i);
objects[i][label] = CreatePlayer3DTextLabel(playerid, "New Label", TEXTCOLOR, px, py, pz, 100, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0);
UpdatePlayer3DTextLabelText(playerid, objects[i][label], TEXTCOLOR, textstring);



Re: Player 3D labels - Mikep. - 11.05.2010

Yes, I need to stream them because there's no virtualworld parameter..


Re: Player 3D labels - Mikep. - 11.05.2010

It still isn't working. Why has something that should be very simple been made complicated?


Re: Player 3D labels - Zh3r0 - 11.05.2010

How about creating it on OnPayerConnect and attatch it with string?


Re: Player 3D labels - Mikep. - 11.05.2010

It's not being attached to anything.

I'd rather not create 1000 labels under onPlayerConnect.


Re: Player 3D labels - Killa_ - 11.05.2010

Explain what you would like to do and then i'll try to give you a solution


Re: Player 3D labels - Mikep. - 11.05.2010

I'm trying to create a 3D label at the player's coordinates.