SA-MP Forums Archive
[Tutorial] GameText Type - 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: Tutorials (https://sampforum.blast.hk/forumdisplay.php?fid=70)
+---- Thread: [Tutorial] GameText Type (/showthread.php?tid=513592)



GameText Type - Hwang - 17.05.2014



__________________________________________________

Follow along to learn how gametext ?

How to use colors in gametext?

In Gametext' use of color is quite simple, just a kind of symbols should be used. ~r~ dark red, GameTextForPlayer(playerid,"~r~Hello World",2500,1); If you use the red color in the form of closed Hello World writer, if you also want to make this clear red ~h~ You can use the term, for example, ~r~~h~ I gave it color is light red by the end of the following can turn bringing color. In addition, you can use these colors on TextDraw.
Example: Hello World

Colors

Red
« ~r~
« ~r~~h~

Green
« ~g~
« ~g~~h~

Blue
« ~b~
« ~b~~h~

White
« ~w~
« ~w~~h~

Yellow
« ~y~
« ~y~~h~

Purple
« ~p~
« ~p~~h~

Black
« ~l~
« ~l~~h~

__________________________________________________

GameText Numbers

__________________________________________________



__________________________________________________



__________________________________________________



__________________________________________________



__________________________________________________



__________________________________________________



__________________________________________________



__________________________________________________

GameText string on the use of?
[b]Цncelikle SendClientMessage If you are using how string, you can use it in gametext', only to introduce a string and format is sufficient for those who can not do what I did:

pawn Код:
new string[256],name[20];
GetPlayerName(playerid, name, 20);
format(string, sizeof(string), "~g~~h~%s ~w~~h~connected server.", name);
GameTextForAll(string,2500,1);
If you add it under the loop of the public who onplayerconnect connecting to the server in the form of announcement tells everyone his nicknames, said the announcement type 1

Welcome pawn code:
pawn Код:
GameTextForPlayer(playerid,"~r~~h~Welcome in Server!",2500,0);
Light red is the color to welcome in the server, it OnPlayerConnect add more suitable.



Re: GameText Type - RajatPawar - 17.05.2014

IMO, I don't think a tutorial on this is required, it's kind of very clearly laid out on the wiki.


Re: GameText Type - Hwang - 17.05.2014

Quote:
Originally Posted by RajatPawar
Посмотреть сообщение
IMO, I don't think a tutorial on this is required, it's kind of very clearly laid out on the wiki.
I prepare what I think is more detailed.


Re: GameText Type - Flake. - 17.05.2014

Straight outa' the SA:MP wiki.


Re: GameText Type - Sojo12 - 17.05.2014

Quote:
Originally Posted by (*|Flake|*)
Посмотреть сообщение
Straight outa' the SA:MP wiki.
Genious!
Copy and Paste.


Re: GameText Type - iFarbod - 17.05.2014

GameText sucks, Using Textdraws.

Styled Text(gametext), i use it in minigames!