17.05.2014, 07:21
__________________________________________________
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);
Welcome pawn code:
pawn Код:
GameTextForPlayer(playerid,"~r~~h~Welcome in Server!",2500,0);