Author Topic: Race System 0.1 By me  (Read 5366 times)

0 Members and 1 Guest are viewing this topic.

Offline VC[88]PD

  • Wiseguy
  • **
  • Posts: 52
    • View Profile
Race System 0.1 By me
« on: February 16, 2013, 05:09:54 pm »
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]
Thanks

Offline Fuzzy168

  • VC:MP Veteran
  • *****
  • Posts: 729
  • Programming since 2011
    • View Profile
Re: Race System 0.1 By me
« Reply #1 on: February 17, 2013, 06:24:44 am »
I though there would be pickups to guide the player but this is good enough.. Good Job.
I'm beginning to feel like a Lag God, Lag God

Offline mrockxkingbutt

  • Crime Boss
  • ****
  • Posts: 373
  • I AM Best Scripter And You Are Not :P
    • View Profile
Re: Race System 0.1 By me
« Reply #2 on: February 17, 2013, 11:21:22 am »
YEH JUST LIKE MY RACE SYSTEM GET BUG
AND TRYING TO MAKE V2

[size=100pt][/size]:D
My Servers Showroom!
www.jimxvcmpscripts.createaforum.com/

Quote from:  rohanaj60
i m a great script Editor

Rofl! lmao lol

xxxSharKsxxx

  • Guest
Re: Race System 0.1 By me
« Reply #3 on: February 25, 2013, 04:06:58 pm »
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]
Thanks
Help me i dunno where to put this :'(

Offline [KB]ViceMania

  • Wiseguy
  • **
  • Posts: 53
  • Mega War server administrator
    • View Profile
Re: Race System 0.1 By me
« Reply #4 on: March 05, 2013, 09:42:01 am »
!race command lol niceee, good work!! :)

Offline VC[88]PD

  • Wiseguy
  • **
  • Posts: 52
    • View Profile
Re: Race System 0.1 By me
« Reply #5 on: March 05, 2013, 04:58:55 pm »
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]
Thanks
Help me i dunno where to put this :'(
put new RandomRoute[][] =to the top.
put else if (strcmp(cmd, "!race", true) == 0) to public OnPlayerText(playerid, cmdtext[])
then put public to last of your pwn.

Offline [VN]truon_chan1

  • Street Thug
  • *
  • Posts: 13
  • [VC]88[PD], best friend FOREVER.
    • View Profile
Re: Race System 0.1 By me
« Reply #6 on: March 14, 2013, 01:45:39 pm »
Good, this race system is good work, thanks :)