SA-MP Forums Archive
[Question]AttachPlayer3DTextLabelToPlayer? - 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: [Question]AttachPlayer3DTextLabelToPlayer? (/showthread.php?tid=116019)



[Question]AttachPlayer3DTextLabelToPlayer? - Re_SerDia - 27.12.2009

hello

not exist "AttachPlayer3DTextLabelToPlayer" function, but "Attach3DTextLabelToPlayer" has exist
How did this happen?

who can make this?


sorry my bad English

thx


Re: [Question]AttachPlayer3DTextLabelToPlayer? - [HiC]TheKiller - 27.12.2009

What do you mean?

Would you like this:

pawn Код:
stock AttachPlayer3DTextLabelToPlayer(Text3D:id, playerid, Float:OffsetX, Float:OffsetY, Float:OffsetZ)
{
  return Attach3DTextLabelToPlayer(Text3D:id, playerid, Float:OffsetX, Float:OffsetY, Float:OffsetZ);
}



Re: [Question]AttachPlayer3DTextLabelToPlayer? - HydraX - 27.12.2009

Quote:
Originally Posted by Re_SerDia
hello

not exist "AttachPlayer3DTextLabelToPlayer" function, but "Attach3DTextLabelToPlayer" has exist
How did this happen?

who can make this?


sorry my bad English

thx
You can't attach a Players label to another player...WTF?


Re: [Question]AttachPlayer3DTextLabelToPlayer? - [HiC]TheKiller - 27.12.2009

Quote:
Originally Posted by HydraX
Quote:
Originally Posted by Re_SerDia
hello

not exist "AttachPlayer3DTextLabelToPlayer" function, but "Attach3DTextLabelToPlayer" has exist
How did this happen?

who can make this?


sorry my bad English

thx
You can't attach a Players label to another player...WTF?
You can, just save the 3D text label into a variable when you set it for a player then it will work by using the text ID.

E.g.

pawn Код:
new TextID[MAX_PLAYERS];

//When a players TextID is set you put
TextID[playerid] = TextID;

stock AttachPlayer3DTextLabelToPlayer(playerid, TargetID)
{
  Attach3DTextLabelToPlayer(TextID[playerid], TargetID, /*Float:OffsetX*/1, /*Float:OffsetY*/1, /*Float:OffsetZ*/1);
  return 1;
}