3d Text Label - 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: 3d Text Label (
/showthread.php?tid=108241)
3d Text Label -
gtapolicemods - 13.11.2009
Код:
new Text3D: VehicleText;
VehicleText = Create3DTextLabel("P--002",0xFFFFFFFF,0.0,0.0,0.0,20,0,1); // LSPD
Attach3DTextLabelToVehicle(VehicleText, 2, 0.0, 0.0, 1.0);
Is there anyway to have the 3d text label to show up only to a certain team
like the 3d text label would only show up to Team_LSPD
Re: 3d Text Label -
Sew_Sumi - 13.11.2009
https://sampwiki.blast.hk/wiki/CreatePlayer3DTextLabel
Thats how you get it to show for one person, and you can make the rest...
Re: 3d Text Label -
gtapolicemods - 13.11.2009
I looked at that before and its confusing that is just for a specific player
I want a specific team just to be able to view the vehicle 3d text
Re: 3d Text Label -
Sew_Sumi - 13.11.2009
Quote:
Originally Posted by Red Hockey
I looked at that before and its confusing that is just for a specific player
I want a specific team just to be able to view the vehicle 3d text
|
Yeah, There is no "team" viewable 3dtext... You need to make a segment of code that goes through all the players, and checks if they are a team member that needs to see that text, and create it for each individual...
You are asking for a simple function to do it, But there is none. You need to make your own.
SetPlayerMarkerForPlayer is also another thing that is widely used in this way.
Re: 3d Text Label -
Donuts - 13.11.2009
You need to make a player's loop when creating the 3D text and then check if the player is in that team.
Also you gotta keep updated for players that disconnect & connect, When a player connects check if he's in that team and create the player 3d text, when he disconnects destroy it.
Also hey Sumi, it's me Daigo Fuyumoto
Re: 3d Text Label -
Flake. - 23.12.2009
Код:
new Text3D: PlayerText;
PlayerText = Create3DTextLabel("P--002",0xFFFFFFFF,0.0,0.0,0.0,20,0,1); // LSPD
Attach3DTextLabelToPlayer(PlayerText, 2, 0.0, 0.0, 1.0);
i think this should work for you