[Help] 3d Text on player
#1

Hello guys, I just made TDM and I wanna add one more thing to it.

I want simple code for add 3d text on player.
I want of it to show player team like this.

I have this
if(GetPlayerTeam(playerid) == TEAM_GROVE)
{
SetPlayerHealth(playerid, 100);
SetPlayerPos(playerid,2530.2251,-1667.7902,15.1690);
SetPlayerHealth(playerid,100);
SetPlayerArmour(playerid, 100);
GivePlayerWeapon(playerid, 24, 100);
GivePlayerWeapon(playerid, 25, 100);
GivePlayerWeapon(playerid, 29, 100);
GivePlayerWeapon(playerid, 31, 100);
SetPlayerColor(playerid, COLOR_GREEN);
}

I just wanna add like Attach3DTextLabelToPlayer()
So it should look like
WHen player spawns as grove he gets name tag like "Grove" if he's part of grove team. Pls help
Reply
#2

of course, this is just part of the code. I only took the OnPlayerSpawn just to show out what I have.
Reply
#3

pawn Код:
new Text3D:label[MAX_PLAYERS];
pawn Код:
label[playerid] = Create3DTextLabel("Grove",COLOUR_GREEN,30.0,40.0,50.0,40.0,0);
Attach3DTextLabelToPlayer(label[playerid], playerid, 0.0, 0.0, 0.7);

Try that.
Reply
#4

I added it bellow that code I have but I don't get anything IG
Reply
#5

You won't see it, only other players can
Reply
#6

So only others can see it right? And I can see other people tags? xD
If this is really true you are getting a star! xD
Reply
#7

Yes. That's taken directly from my script so it should work.
Reply
#8

It works !!! Thankss!!!! But one more favour xD please make them lower since it's like 20ft from my head xD I wanna them like at my back etc.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)