SA-MP Forums Archive
How to make one like that? - 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)
+--- Thread: How to make one like that? (/showthread.php?tid=617729)



How to make one like that? - DavidGravelli - 25.09.2016

Hi All How to make one like that with colours



+ REP who help me Thanks!


Re: How to make one like that? - Sawalha - 25.09.2016

https://sampwiki.blast.hk/wiki/Create3DTextLabel

you may use color embedding for using various colors in the text regardless of the one desired in the function


Re: How to make one like that? - DavidGravelli - 25.09.2016

Just give me a example code


Re: How to make one like that? - jlalt - 25.09.2016

You have to use 3dtext label to create the text and use hex colors to colour the text.
PHP код:
https://wiki.sa-mp.com/wiki/Create3DTextLabel 
hex colours:
PHP код:
https://wiki.sa-mp.com/wiki/Hex_colours 
use this method to colour the text of label / dialog / message:
PHP код:
http://forum.sa-mp.com/showthread.php?t=250389 



Re: How to make one like that? - Sawalha - 25.09.2016

Quote:
Originally Posted by DavidGravelli
Посмотреть сообщение
Just give me a example code
Код:
public OnGameModeInit()
{
    Create3DTextLabel("{FF0000}Red text", -1,0.0,0.0,0.0,100.0,0,0);
    return 1;
}



Re: How to make one like that? - DavidGravelli - 25.09.2016

Where to put FloatX And FloatY And FloatZ


Re: How to make one like that? - CXdur - 26.09.2016

Quote:
Originally Posted by DavidGravelli
Посмотреть сообщение
Where to put FloatX And FloatY And FloatZ
Those parameters are meant to be for the coordinates in-game. You can use /save to save your current position in-game at the place you want it and then copy the X, Y and Z over. You might want to add a bit of height to the Z axis as it will be near your feet, you could always play around with the coordinates till you are satisfied.


Re: How to make one like that? - Luis- - 26.09.2016

pawn Код:
public OnGameModeInit()
{
    Create3DTextLabel("{FF0000}Bank of Los Santos\n{FFFFFF}Commands: /balance /deposit /withdraw", -1, X, Y, Z, 40.0, 0, 0);
    return 1;
}
X, Y, Z are the coordinates of where you want the text to be as said above, use /save.