Gametext Color
#1

hi, how can i change the color like ~g~ for Green in this Gametext?:

pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
  new string[50];
  format(string, sizeof(string), "You entered vehicle: %i", vehicleid);
  GameTextForPlayer(playerid, string, 3000, 4); //This Gametext should be another color
  return 1;
}
Reply
#2

pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
  new string[50];
  format(string, sizeof(string), "~g~You entered vehicle: %i", vehicleid);
  GameTextForPlayer(playerid, string, 3000, 4); //This Gametext should be another color
  return 1;
}
Код:
Text Colors

~n~ New line
~r~ Red
~g~ Green
~b~ Blue
~w~ White
~y~ Yellow
~p~ Purple
~l~ Black
~h~ Turn text colour lighter (used too much will make your text white, doesnt work on black)
Reply
#3

lol thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)