Abit of help here... - 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: Abit of help here... (
/showthread.php?tid=135871)
Abit of help here... -
Lorenc_ - 22.03.2010
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
Re: Abit of help here... -
Jeffry - 22.03.2010
I hope this is what you mean:
At TOP:
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
Re: Abit of help here... -
Lorenc_ - 23.03.2010
how could i acctually make it flash each letter at a time?
Re: Abit of help here... -
Mike Garber - 23.03.2010
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