3d Text Label
#1

Код:
    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
Reply
#2

https://sampwiki.blast.hk/wiki/CreatePlayer3DTextLabel

Thats how you get it to show for one person, and you can make the rest...
Reply
#3

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
Reply
#4

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.
Reply
#5

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
Reply
#6

Код:
    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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)