26.09.2012, 15:27
(
Last edited by Nirzor; 27/09/2012 at 01:34 PM.
)
Click Here To Download TextDraw Editor
Today i am going to show a tutorial how to create Permanent Textdraws in the easiest way.
The Textdraw will only disappear upon when a player disconnects.
so to start off with download the textdraw editor i forgot the name of its creator sorry.
place the textdraws in your positions go to your scriptfiles folder and get the codes copy them and paste
it in your script.But i am going to show what each variable works with.
Step 1
create a variable to make the textdraw suppost i give the variable
so now you have finally created the variable we are done with it.
Step 2
go to
function and as i said said before to take the codes from scriptfiles
suppose these are my codes
now you are thinking what does this codes have to do with??
ok now listen carefully
remember we named a variable with TextDraw0; so this is the work of it we put in the variable name to define
the textdraw we are creating in this line.
this is the font style of the textdraw there are 3 styles you can
choose your own and give this function makes the style of the textdraw.
this is the function we use to make the
size of the letter as we already got the codes in scriptfiles we can just paste it here for letter size.
this is the color of textdraw just copy it from scriptfiles
and paste it after the textdraw0 to get your own color of choice but remember don't mess up with other
codes or it will be a total mess.
this is the function we are using for defining the outline
of the textdraw so we get a nice outline there are many outlines you can choose for yourselves when editing
a textdraw.
finally these three codes left.
while editing you will see in settings that you can set this so in the settings go and edit and get the codes
in scriptfiles and at last of everything show the textdraw for player so players can see and to mention onething
i did not give OnPlayerDisconnect code because when player disconnects it will automatically go away and this
is a Permanent code not the changing code like others.
then go to on player gamemode init to destroy the textdraw to prevent bugs put
Thanks for watching my tutorial.
+Rep if it helped you or you liked it!
Today i am going to show a tutorial how to create Permanent Textdraws in the easiest way.
The Textdraw will only disappear upon when a player disconnects.
so to start off with download the textdraw editor i forgot the name of its creator sorry.
place the textdraws in your positions go to your scriptfiles folder and get the codes copy them and paste
it in your script.But i am going to show what each variable works with.
Step 1
create a variable to make the textdraw suppost i give the variable
Code:
new Text:Textdraw0;
Step 2
go to
Code:
OnPlayerConnect
suppose these are my codes
Code:
Textdraw0 = TextDrawCreate(487.000000, 7.000000, "gtasamp.smfnew.com"); TextDrawBackgroundColor(Textdraw0, 255); TextDrawFont(Textdraw0, 0); TextDrawLetterSize(Textdraw0, 0.679999, 1.500000); TextDrawColor(Textdraw0, -16776961); TextDrawSetOutline(Textdraw0, 0); TextDrawSetProportional(Textdraw0, 1); TextDrawSetShadow(Textdraw0, 1); TextDrawShowForPlayer(playerid, Textdraw0);
ok now listen carefully
Code:
Textdraw0 = TextDrawCreate(487.000000, 7.000000, "gtasamp.smfnew.com");
the textdraw we are creating in this line.
Code:
TextDrawFont(Textdraw0, 0);
choose your own and give this function makes the style of the textdraw.
Code:
TextDrawLetterSize(Textdraw0, 0.679999, 1.500000);
size of the letter as we already got the codes in scriptfiles we can just paste it here for letter size.
Code:
TextDrawColor(Textdraw0, -16776961);
and paste it after the textdraw0 to get your own color of choice but remember don't mess up with other
codes or it will be a total mess.
Code:
TextDrawSetOutline(Textdraw0, 0);
of the textdraw so we get a nice outline there are many outlines you can choose for yourselves when editing
a textdraw.
finally these three codes left.
Code:
TextDrawSetProportional(Textdraw0, 1); TextDrawSetShadow(Textdraw0, 1); TextDrawShowForPlayer(playerid, Textdraw0);
in scriptfiles and at last of everything show the textdraw for player so players can see and to mention onething
i did not give OnPlayerDisconnect code because when player disconnects it will automatically go away and this
is a Permanent code not the changing code like others.
then go to on player gamemode init to destroy the textdraw to prevent bugs put
Code:
TextDrawDestroyForPlayer(playerid, Textdraw0);
+Rep if it helped you or you liked it!