28.03.2009, 15:54
~r~ = red
~b~ = blue
~p~ = purple
~y~ = yellow
~g~ = green
etc... just use first letter of color you want with "~" before letter and after
also when using class selection if you want to use diff names for diff characters just use a simple switch code:
and you can keep going
EDIT: the 2000 stands for the milliseconds the text will show onscreen so the text will who for 2 seconds unill it goes away
The "5" means the style of the text, go here for all styles: https://sampwiki.blast.hk/wiki/GameTextStyle
~b~ = blue
~p~ = purple
~y~ = yellow
~g~ = green
etc... just use first letter of color you want with "~" before letter and after
also when using class selection if you want to use diff names for diff characters just use a simple switch code:
pawn Код:
switch(classid)
{
case 1..5: GameTextForPlayer(playerid, "~r~Team 1 Name Here", 2000, 5); <---- Skins: 1 through 5
case 6..10: GameTextForPlayer(playerid, "~r~Team 2 Name Here", 2000, 5); <---- Skins 6 through 10
}
EDIT: the 2000 stands for the milliseconds the text will show onscreen so the text will who for 2 seconds unill it goes away
The "5" means the style of the text, go here for all styles: https://sampwiki.blast.hk/wiki/GameTextStyle