SA-MP Forums Archive
Gametext help! 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 help! color! (/showthread.php?tid=143789)



Gametext help! color! - 0ne - 24.04.2010

pawn Код:
public DriftExit(playerid)
{
  for(new g=0;g<200;g++)
    {
    new string[128];
    TimerD = SetTimer("Cooldown",1000,false);
    format(string,sizeof(string),"~r~%d~n~~r~X%d",DriftPointsNow[g], DriftBonus[g]);
    GameTextForPlayer(g,string,1000,6);
    }
}
public Cooldown(playerid)
{
    PlayerDriftCancellation[playerid] = 0;
  new Float:h;
  GetVehicleHealth(GetPlayerVehicleID(playerid),h);
  if(DriftPointsNow[playerid]>70 && DriftPointsNow[playerid]<100000 && h==HealthInit[playerid]) GivePlayerCash(playerid,DriftPointsNow[playerid]*DriftBonus[playerid]*floatround(0.5));
    DriftBonus[playerid]=1;
    AutoFixBool[playerid]=true;
    SetVehicleHealth(GetPlayerVehicleID(playerid),HealthInit[playerid]);
    DriftPointsNow[playerid] = 0;
}
When im drifting i see normal color ~y~ and ~g~ gametext and it gives2seconds timer to driftexit it changes the gametext color to red only for 200miliseconds and changes back then, anyone knows how to do it? i need for the gametext to stay red till the gametext time expires.


Re: Gametext help! color! - 0ne - 25.04.2010

Anyyyone?