Abit of help here...
#1

Hey people! i was on a vacation and suddenly i had to stop scripting for about 2 weeks... So when i came back from my vacation i jumped on the computer and played some sa-mp and started scripting again then i noticed you could make a flashing 'GameText'. How is it possible for me to make one flash out purple and red 'Lorenc' out of just this code

Код:
GameTextForPlayer(playerid,"Lorenc",5000,5);
thanks,
Lorenc
Reply
#2

I hope this is what you mean:

At TOP:
pawn Код:
new IsRed[MAX_PLAYERS];
To OnPlayerText
pawn Код:
if (strcmp("/show", cmdtext, true, 10) == 0)
    {
        GameTextForPlayer(playerid,"~r~Lorenc",2000,3);
        SetTimerEx("Flashing",1000, 1, "d", playerid);
        IsRed[playerid]=1;
        return 1;
    }
At The Bottom of your script:
pawn Код:
forward Flashing(playerid);
public Flashing(playerid)
{
if(IsRed[playerid]==1)
    {
    GameTextForPlayer(playerid,"~p~Lorenc",2000,3);
    IsRed[playerid]=0;
    }
    else
    {
    GameTextForPlayer(playerid,"~r~Lorenc",2000,3);
    IsRed[playerid]=1;
    }
return 1;
}
Hope it works, cause i didnt test it.

I hope this helps you.

Jeffry
Reply
#3

how could i acctually make it flash each letter at a time?
Reply
#4

Quote:
Originally Posted by ((Lorenc))
how could i acctually make it flash each letter at a time?
See those ~r~ and ~p~ ?
~r~ means the next letters (until it's formatted again, for example with ~p~) will be Red
~p~ means purple.

You can see them all at; https://sampwiki.blast.hk/wiki/GameTextStyle

So ~r~L~p~o~r~r~p~e~r~n~p~c
should turn out being; Lorenc
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)