Gametext Color - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Gametext Color (
/showthread.php?tid=122652)
Gametext Color -
nesty - 22.01.2010
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;
}
Re: Gametext Color -
JoeDaDude - 22.01.2010
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)
Re: Gametext Color -
nesty - 22.01.2010
lol thanks