[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


Messages In This Thread
GameText Type - by Hwang - 17.05.2014, 07:21
Re: GameText Type - by RajatPawar - 17.05.2014, 07:28
Re: GameText Type - by Hwang - 17.05.2014, 07:30
Re: GameText Type - by Flake. - 17.05.2014, 07:36
Re: GameText Type - by Sojo12 - 17.05.2014, 11:01
Re: GameText Type - by iFarbod - 17.05.2014, 15:32

Forum Jump:


Users browsing this thread: 1 Guest(s)