[Tutorial] GameText Type
#1



__________________________________________________

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.
Reply
#2

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

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.
Reply
#4

Straight outa' the SA:MP wiki.
Reply
#5

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

GameText sucks, Using Textdraws.

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


Forum Jump:


Users browsing this thread: 1 Guest(s)