SA-MP Forums Archive
3DText does not seem to work? - 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 does not seem to work? (/showthread.php?tid=177615)



3DText does not seem to work? - dirkblok - 18.09.2010

Hello,

I try to create a /me command, everything works with SendClientMessage, but the 3DText don't show up.

Does someone got a clue?

pawn Код:
CMD:me(playerid, params[])
{
    new str2[128];
    if(sscanf(params, "s", str2))
    {
        SendClientMessage(playerid, 0xffffffff, "Usage: /me <action>");
        return 1;
    }
    else
    {
        new Float:px, Float:py, Float:pz;
        new message[150], pname[28];
        GetPlayerName(playerid, pname, sizeof(pname));
        format(message, sizeof(message), "** %s **", str2);
        SendClientMessage(playerid, 0xffffffff, message);
        me[playerid] = Create3DTextLabel(message,0xffffffff,30.0,40.0,50.0,40.0, 0, 0);
        Attach3DTextLabelToPlayer(me[playerid], playerid, 0.0, 0.0, 0.7);
        SetTimer("mecommand", 7000, false);
    }
    return 1;
}
I used the tut on the wiki.

Thanks alot.


Re: 3DText does not seem to work? - Seven. - 18.09.2010

Better use: player chat bubble.
https://sampwiki.blast.hk/wiki/SetPlayerChatBubble


Re: 3DText does not seem to work? - dirkblok - 19.09.2010

I tried, the code doesn't give any errors, but I can't see the text above my head.

Is it true that only other people can see it?

Thanks for the help


Re: 3DText does not seem to work? - playbox12 - 19.09.2010

You can use 3DTextLabel, but you need to create it before you can attach it to a player


Re: 3DText does not seem to work? - Retardedwolf - 19.09.2010

Quote:
Originally Posted by dirkblok
Посмотреть сообщение
I tried, the code doesn't give any errors, but I can't see the text above my head.

Is it true that only other people can see it?

Thanks for the help
Yes. (8char) I'll be able to confirm it for you.


Re: 3DText does not seem to work? - dirkblok - 19.09.2010

Don't have the server online yet, sorry.

The 3DText was already created, read the code./


Re: 3DText does not seem to work? - Sniperwolves - 19.09.2010

you can't read the 3d text that is attached to yourself (or is it just for me?)


Re: 3DText does not seem to work? - Retardedwolf - 19.09.2010

Quote:
Originally Posted by Sniperwolves
Посмотреть сообщение
you can't read the 3d text that is attached to yourself (or is it just for me?)
You can't read 3DTexts that are attached to you but others can.


Re: 3DText does not seem to work? - dirkblok - 19.09.2010

Alright thanks for all the help