how to set text like this

Started by MacTavish, Nov 23, 2014, 10:08 AM

Previous topic - Next topic

MacTavish


Grand Hunting Project
Join #SLC, #KAKAN, #Doom, #GHP @LUnet

Retired VC:MP Player/Scripter :P

Honey

That Is a TextDraw, You can create textdraws anywhere on screen.

You can find more information about Textdraws at the Wiki.

MacTavish

Textdraw info has not been added yet bro see

Grand Hunting Project
Join #SLC, #KAKAN, #Doom, #GHP @LUnet

Retired VC:MP Player/Scripter :P

Honey

#3
If you cannot find something in the Wiki then you can try finding it in the source code or another OutDated Information Page.

Outdated Information Page : https://bitbucket.org/stormeus/0.4-squirrel/wiki
Source :  https://bitbucket.org/stormeus/0.4-squirrel/src

Syntax For Creating a TextDraw : CreateTextdraw("Title",Screen X Pos,Screen Y Pos,Color);

Sk

#4
Quote from: Honey on Nov 23, 2014, 11:17 AMSyntax For Creating a TextDraw : CreateTextdraw("Title",Screen X Pos,Screen Y Pos,Color);
yup you can create it like this but u need to make it visible for all or a specific person caze the server will make this textdraw but will not show it to any one.
for example
u can use post it any where u want like onScriptload etc
title <- CreateTextdraw("My Server Title",100,200,0xFFE1FF00);
title.ShowForAll();
or for specific Person use
title.ShowForPlayer(player);
and for colours the last one i posted is 0xFFE1FF00
in a format 0xRRBBGG00
so all you need to do is replace this RRBBGG with hex colour which u can find on google very easily well i use these pdf files
Clicky
and another file
Clicky part 2
Note: Don,t Use # just post the next Hex codes
Good Luck


MacTavish


Grand Hunting Project
Join #SLC, #KAKAN, #Doom, #GHP @LUnet

Retired VC:MP Player/Scripter :P

MacTavish

Bro i did this for getting district name but the name is not changing when player goto other district here is my code

dis <- CreateTextdraw("District: " + GetDistrictName( player.Pos.x, player.Pos.y ) + "",20,550,0xFFFF0000);

dis.ShowForPlayer(player);

Grand Hunting Project
Join #SLC, #KAKAN, #Doom, #GHP @LUnet

Retired VC:MP Player/Scripter :P

Sebastian

Quote from: RATHORE on Nov 23, 2014, 09:15 PMBro i did this for getting district name but the name is not changing when player goto other district here is my code

dis <- CreateTextdraw("District: " + GetDistrictName( player.Pos.x, player.Pos.y ) + "",20,550,0xFFFF0000);

dis.ShowForPlayer(player);

Similar "problem":
Quote from: You should understandBro i did this for changing vehicle model but the model is not changing
here is my code

dis <- CreateVehicle(blabla);

How do you expect for it to change, when you just create another textdraw ?
You have to remove the old one, then create the new one having the correct district name.

MacTavish

I want it just like as Ethical Dm can someone help me

Grand Hunting Project
Join #SLC, #KAKAN, #Doom, #GHP @LUnet

Retired VC:MP Player/Scripter :P