Hi,all again.Today I have made a command because I was race with [VN]Truon_Chan1 and I think I can make a random route system.So I made this.I hope you like.
Put this on top:
[pawn]new RandomRoute[][] =
{
"=== Mansion to Port ===",
"=== Malibu to Ocean View ===",
"=== Downtown Police Station to Leaf Link ===",
"=== Downtown Hotel to Airport ===",
"=== Port to Mansion ===",
"=== Ocean View to Malibu ===",
"=== Airport to Downtown Hotel ===",
"=== Leaf Link to Downtown Police Station ==="
};[/pawn]
And put this into public OnPlayerText(playerid, cmdtext[])
[pawn]else if (strcmp(cmd, "!race", true) == 0)
      {
            SetTimer( "LoadingRoute", 1000, 0 );
         SetTimer( "LoadingRoute1", 2000, 0 );
         SetTimer( "LoadingRoute2", 3000, 0 );
         SetTimer( "CountDowns3", 300000, 0 );
            SetTimer( "CountDowns2", 301000, 0 );
           SetTimer( "CountDowns1", 302000, 0 );
           SetTimer( "FinalCount1", 303000, 0 );
           SetTimer( "FinalCount2", 304000, 0 );
         return 1;
       }[/pawn]
Put this at last of your pawn
[pawn]public LoadingRoute()
{
    SendClientMessageToAll(COLOR_GREEN, "Route of Next Race is :");
}
public LoadingRoute1()
{
    new randMSG = random(sizeof(RandomRoute));
   SendClientMessageToAll(COLOR_GREEN,RandomRoute[randMSG]);
   }
public LoadingRoute2()
{
    SendClientMessageToAll(COLOR_YELLOW, "Please go to the start quickly.");
    GameTextForAll("~y~Race ~p~will ~t~start ~b~in ~q~5 ~r~min");
}
public CountDowns3()
{
   GameTextForAllBottom("~x~= 3 =");
   GameTextForAll("~r~>~y~>~t~>");
}
public CountDowns2()
{
   GameTextForAllBottom( "~r~= 2 =" );
    GameTextForAll("~y~>~t~>");
}
public CountDowns1()
{
   GameTextForAllBottom("~p~= 1 =" );
    GameTextForAll("~t~>");
}
public FinalCount1()
{
   GameTextForAllBottom("~y~GO! ~q~GO! ~p~GO!" );
   GameTextForAll("~y~GO! ~q~GO! ~p~GO!");
}
public FinalCount2()
{
   GameTextForAllBottom(" " );
}[/pawn]