3DText Problems.. - 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: 3DText Problems.. (
/showthread.php?tid=254345)
3DText Problems.. -
Skylar Paul - 10.05.2011
OnPlayerConnect:
pawn Код:
format(string, sizeof(string), "%s (ID: %d)", GetTheirName(playerid), playerid);
NameTag[playerid] = Create3DTextLabel(string, WHITE, 0, 0, 0, 15, 0, 0);
OnPlayerSpawn:
pawn Код:
GetPlayerPos(playerid, MyPos[0], MyPos[1], MyPos[2]);
Attach3DTextLabelToPlayer(NameTag[playerid], playerid, MyPos[0], MyPos[1], MyPos[2]+1);
Result:
What's wrong with it? :\
Re: 3DText Problems.. -
Hobod - 10.05.2011
put the last 3 params to 0.0 and see if that works
they're offsets from the player themselves
i had this and it displays above the players head
pawn Код:
Attach3DTextLabelToPlayer(id, playerid, OffsetX, OffsetY, OffsetZ+0.6);
Re: 3DText Problems.. -
Skylar Paul - 10.05.2011
Quote:
Originally Posted by Hobod
put the last 3 params to 0.0 and see if that works
they're offsets from the player themselves
i had this and it displays above the players head
pawn Код:
Attach3DTextLabelToPlayer(id, playerid, OffsetX, OffsetY, OffsetZ+0.6);
|
Still no luck.
AW: 3DText Problems.. -
Nero_3D - 10.05.2011
Just do it like in the example from the wiki
Re: AW: 3DText Problems.. -
Skylar Paul - 10.05.2011
Quote:
Originally Posted by Nero_3D
|
Still not working.. Do 3D Text Labels disappear when you alt-tab? Because i'm having to use a sandbox program to multi-log.
Re: 3DText Problems.. -
iggy1 - 10.05.2011
I don't know if this is happening to anyone else, but i haven't been able to attach 3dtext labels to players since 0.3c. Not with or without a streamer. And i have tested many different ways of doing it, some silly like attaching it to a vehicle first. None have worked for me. I've even posted this in the bug report section. (a few months back) I got no replies that helped.
Re: 3DText Problems.. -
Skylar Paul - 10.05.2011
Quote:
Originally Posted by iggy1
I don't know if this is happening to anyone else, but i haven't been able to attach 3dtext labels to players since 0.3c. Not with or without a streamer. And i have tested many different ways of doing it, some silly like attaching it to a vehicle first. None have worked for me. I've even posted this in the bug report section. (a few months back) I got no replies that helped.
|
I've always had that problem.
Re: 3DText Problems.. -
Skylar Paul - 14.05.2011
Still need help.
Re: 3DText Problems.. -
Skylar Paul - 15.05.2011
Bump.
Re: 3DText Problems.. -
NRJ53 - 16.05.2011
Try this:
OnPlayerConnect:
pawn Код:
format(string, sizeof(string), "%s (ID: %d)", GetTheirName(playerid), playerid);
NameTag[playerid] = Create3DTextLabel(string, WHITE, 0, 0, 0, 15, 0, 0);
OnPlayerSpawn:
pawn Код:
Attach3DTextLabelToPlayer(NameTag[playerid], playerid, 0.0, 0.0, 0.7);
OnPlayerDisconnect:
pawn Код:
Delete3DTextLabel(NameTag[playerid])