#1

Hello all samp forums users, i'm trying to script advanced update for my server but after scripting i have one problem and i tried to fix it many times but i'm failed in the end.
My only problem is how to Create3DTextLabel? i checked wiki pages and i followed everything but it's not works.
here is the codes :
okay first step i must add the create3dtextlabel lines in OnGameModeInit Lines.
i did that correctly and the second step is adding the same Create3DTextLabel lines in OnPlayerConnect Lines. but still the same problem i didn't found my 3dtextlabels in the game. So Can anyone help me?
Reply
#2

You do not need to add Create3DTextLabel in the OnPlayerConnect lines.
You can create them anywhere by the way.

Just make sure that the virtual world is the same and that you are using the proper coordinates.
Would you like to show us the code maybe?

Edit: You might also check your color to not be transparent.
Reply
#3

okay here is the Lines.
Код:
 Create3DTextLabel("This is a zone door, type /enter1 to enter it!",0xFF9900AA,1111.92, -1795.64, 16.59,30.0,-1,1);
    Create3DTextLabel("This is a zone door, type /enter2 to enter it!",0xFF9900AA,2524.70, -1658.64, 15.82,30.0,-1,1);
    Create3DTextLabel("This is a zone door, type /enter3 to enter it",0xFF9900AA,1122.70, -2036.95, 69.89,30.0,-1,1);
    Create3DTextLabel("Here you can train to get a fight style type /kungfu,/boxing,/kneehead",0x66CC00FF,756.23, 5.63, 1000.69,30.0,-1,1);
Reply
#4

Quote:
Originally Posted by MarkNelson
Посмотреть сообщение
okay here is the Lines.
Код:
 Create3DTextLabel("This is a zone door, type /enter1 to enter it!",0xFF9900AA,1111.92, -1795.64, 16.59,30.0,-1,1);
    Create3DTextLabel("This is a zone door, type /enter2 to enter it!",0xFF9900AA,2524.70, -1658.64, 15.82,30.0,-1,1);
    Create3DTextLabel("This is a zone door, type /enter3 to enter it",0xFF9900AA,1122.70, -2036.95, 69.89,30.0,-1,1);
    Create3DTextLabel("Here you can train to get a fight style type /kungfu,/boxing,/kneehead",0x66CC00FF,756.23, 5.63, 1000.69,30.0,-1,1);
You just made a mistake,
You must set a Virtual World for it, ( 0 As normal )

Note :if it was in the gym , you must check if gym is at a virtual world and set to it's value
Reply
#5

i seted it as 0 like before but it's the same problem.
Reply
#6

Correct :
Create3DTextLabel("This is a zone door, type /enter1 to enter it!",0xFF9900AA,1111.92, -1795.64, 16.59,30.0,0,1);
Create3DTextLabel("This is a zone door, type /enter2 to enter it!",0xFF9900AA,2524.70, -1658.64, 15.82,30.0,0,1);
Create3DTextLabel("This is a zone door, type /enter3 to enter it",0xFF9900AA,1122.70, -2036.95, 69.89,30.0,0,1);
Create3DTextLabel("Here you can train to get a fight style type /kungfu,/boxing,/kneehead",0x66CC00FF,756.23, 5.63, 1000.69,30.0,-1,1);
Reply
#7

Lol i'm stupid i wasn't added the virtual world 0 in the 3dtextlabel before
just wrong coordinates
Reply
#8

This is a working 3D label in my script ( tested )
Create3DTextLabel("This is a zone door\ntype /enter1 to enter it!", 0xFF9900AA, 1111.92, -1795.64, 16.59, 20.0, 0, 1);
Another note:Put it only under OnGamemodeInit only, not OnPlayerConnect and line must not be long, you must use \n to back to line
Example:
public OnGameModeInit()
{
Create3DTextLabel("I'm at the coordinates:\n30.0, 40.0, 50.0", 0x008080FF, 30.0, 40.0, 50.0, 40.0, 0, 0);
return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)