Text Scripting Help
#1

I want to make text appear in the middle of everyone's screen, each line a different color when I use a certain command. Right now when I use the command, it only appears in the chat area in green how can I change it?
Reply
#2

You need to use a text draw or a game text for that.

Game text being the easier solution:
pawn Код:
GameTextForPlayer(playerid, "~r~red ~n~~g~green ~n~~b~blue ~n~~p~pink ~n~~y~yellow", 5000, 5);
Reply
#3

When I type a certain command, I send a "lotto announcement" to all the players. The text however is in the chat area and is green. I want to make it appear in the middle of the screen, in different colors.
Reply
#4

pawn Код:
GameTextForAll(inputtextordefineyourdamntexthere, 5000, 3 );
Reply
#5

Quote:
Originally Posted by EDHH
Посмотреть сообщение
When I type a certain command, I send a "lotto announcement" to all the players. The text however is in the chat area and is green. I want to make it appear in the middle of the screen, in different colors.
With random colors each time:
PHP код:
static const colors[][10] =
{
    {
"~r~"}, {"~r~~h~"}, {"~r~~h~~h~"},
    {
"~b~"}, {"~b~~h~"}, {"~b~~h~~h~"},
    {
"~g~"}, {"~g~~h~"}, {"~g~~h~~h~"},
    {
"~y~"}, {"~y~~h~"}, {"~y~~h~~h~"},
    {
"~p~"}, {"~p~~h~"}
};
format(stringsizeof(string), "%sYour text here !"colors[random(sizeof(colors))]);
GameTextForAll(string5000); 
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)