SA-MP Forums Archive
[Help] 3d Text on player - 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: [Help] 3d Text on player (/showthread.php?tid=268796)



[Help] 3d Text on player - Twinki1993 - 13.07.2011

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



Re: [Help] 3d Text on player - Twinki1993 - 13.07.2011

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


Re: [Help] 3d Text on player - Vero - 13.07.2011

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.


Re: [Help] 3d Text on player - Twinki1993 - 13.07.2011

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


Re: [Help] 3d Text on player - Vero - 13.07.2011

You won't see it, only other players can


Re: [Help] 3d Text on player - Twinki1993 - 13.07.2011

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



Re: [Help] 3d Text on player - Vero - 13.07.2011

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


Re: [Help] 3d Text on player - Twinki1993 - 13.07.2011

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.