SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts

Reply
 
Thread Tools Display Modes
Old 16/05/2013, 10:48 PM   #1
Basssiiie
High-roller
 
Basssiiie's Avatar
 
Join Date: Mar 2011
Location: The Netherlands
Posts: 990
Reputation: 191
Default Random Race Generator --- Create randomized races dynamically!

Random Race Generator v1.2.2
Last update: 31st of December 2016

What is this Random Race Generator?

This script allows players to easily start a randomized race. By using '/rrg menu', a small screen with a map will pop up (see first screenshot). Here, the player will be allowed to view the course of races, join current races or create new races. When a new race is created, the player will be asked how long the race should be. This value is then used to randomly create a race. When the race is created, other players can join the race. After the race is finished, everything will be cleaned up and the race slot will be available for a new race.

This script was created for the RouteConnector Contest and will require the RouteConnector plugin.


Why would I download this?
  • It's plug and play! No scripting knowledge required to use it and it should work in every kind of server.
  • There's an user-friendly GUI and a few commands, which will all be remembered to you in the chat. No need to remember hundreds of complicated commands anymore. The commands are also categorized, so you easily look them up.
  • It's great for an event or just a day of fun with some friends or your server community.
  • No repetitive boring races which you have done before. No race will be the same!
  • It's customizable! Change colors, lengths and limits to get incredibly long races. Dig in deeper and you can add your own scripts and add new possibilities for your server.

Other features
  • Both public and private races.
  • Players can invite other players into their races.
  • Lots of choice for race vehicles and server admins can adjust the vehicle list to their taste.
  • Two example scripts which make use of the scriptable customization to add new features, like race pickups and money prizes.

Ingame commands

There are a few commands in this script. All of them go through one main command:
  • /rrg
    This command will show all possible sub-commands.
New in v1.2 are the sub commands. Instead of all different commands, all commands run through one main command name. Sub commands follow the main command name and allow for more consistency, which will make it easier to remember them. These are all the sub commands which can be used:
  • /rrg help
    This will do the same as typing just '/rrg', it will show all the possible sub-commands.
  • /rrg menu
    This command opens the GUI with a map and a list of all the race slots. Here the player can either create a new race or join an already existing race. You can also use /rrg join, which will have the same effect.
  • /rrg start
    When you're the race creator, you can use this command to start the countdown for the race. After the countdown hits "GO!", players won't be able to join anymore.
  • /rrg leave
    When you're the race creator, this will call off the race and remove it from the script. All the contestants will be removed from the race as well.
    When you're a contestant, you'll leave the race and you'll be allowed to either join another race or to do other things.
  • /rrg respawn
    This allows you to respawn at the last checkpoint, when you get stuck. Respawning takes approximately 3 seconds.
  • /rrg invite <name>
    When in a race, you can use this command to invite friends to the same race as you. You do not have to type the whole name. If you use 'Y_' as name input, it will still invite 'Y_less', if he is on the server and no-one else has 'Y_' in their name.
  • /rrg showinvite
    If you receive an invite, you can use this command to show the invite. If you do not view the invite within 20 seconds, it will be automatically removed. This allows you to ignore the invite, if you don't want to join the race.

Videos

Multiplayer gameplay video will come later.

Time-lapse video of the scripting process of v1.0:

http://www.youtube.com/watch?v=VbbdyWJyppI

(Topic about the time-lapse)


Screenshots









Screenshots of v1.1:


Screenshots of v1.0:



Download

Download v1.2.2 (or older versions)
View v1.2.2 source code

Note: This script requires you to have the RouteConnector plugin installed!

Feel free to post suggestions, constructive criticism, questions, bugs and feedback below.

Regards,
Basssiiie

Last edited by Basssiiie; 30/12/2016 at 10:50 PM.
Basssiiie is offline   Reply With Quote
Old 16/05/2013, 10:50 PM   #2
Chasm
Little Clucker
 
Join Date: Mar 2013
Location: Everywhere.
Posts: 46
Reputation: 0
Default Re: Random Race Generator (RouteConnector Contest) --- Create randomized races dynamically!

Epic! Good job!
Chasm is offline   Reply With Quote
Old 16/05/2013, 10:54 PM   #3
Latisha
Big Clucker
 
Join Date: Apr 2013
Posts: 102
Reputation: -10
Default Re: Random Race Generator (RouteConnector Contest) --- Create randomized races dynamically!

Nice FS 9/10
Latisha is offline   Reply With Quote
Old 17/05/2013, 12:55 AM   #4
Matyaas
Huge Clucker
 
Matyaas's Avatar
 
Join Date: Mar 2012
Posts: 371
Reputation: 9
Wink Respuesta: Random Race Generator (RouteConnector Contest) --- Create randomized races dynamically!

Wow, awesome!! 10/10
__________________
Matyaas is offline   Reply With Quote
Old 17/05/2013, 12:59 PM   #5
fabiango86
Little Clucker
 
Join Date: Mar 2011
Posts: 2
Reputation: 0
Default --- Create randomized races dynamically!

awesome work

Last edited by fabiango86; 17/05/2013 at 01:29 PM.
fabiango86 is offline   Reply With Quote
Old 17/05/2013, 01:09 PM   #6
RajatPawar
High-roller
 
RajatPawar's Avatar
 
Join Date: Aug 2011
Location: ヽ༼ຈل͜ຈ༽ノ
Posts: 2,302
Reputation: 311
Default Re: Random Race Generator (RouteConnector Contest) --- Create randomized races dynamically!

This is nice, I have the exact idea and code for this, just that route connector doesn't work at my PC. A fine job getting it before me! It's just basically random node to random node creation of race CPs, right?
RajatPawar is offline   Reply With Quote
Old 17/05/2013, 11:30 PM   #7
Basssiiie
High-roller
 
Basssiiie's Avatar
 
Join Date: Mar 2011
Location: The Netherlands
Posts: 990
Reputation: 191
Default Re: Random Race Generator (RouteConnector Contest) --- Create randomized races dynamically!

Thanks all for the feedback!


Quote:
Originally Posted by Rajat_Pawar View Post
This is nice, I have the exact idea and code for this, just that route connector doesn't work at my PC. A fine job getting it before me! It's just basically random node to random node creation of race CPs, right?
Almost. Instead of a random node, it picks a random coordinate between -3000 and 3000 for the X and the Y. Then it finds the closest node to that point and creates a route to it. You can look into the code to see how it's done.
Basssiiie is offline   Reply With Quote
Old 18/05/2013, 03:49 AM   #8
Nubik
Little Clucker
 
Nubik's Avatar
 
Join Date: May 2013
Location: $location
Posts: 42
Reputation: 4
Default Re: Random Race Generator (RouteConnector Contest) --- Create randomized races dynamically!

Awesome! reallyyyyyyy
Nubik is offline   Reply With Quote
Old 18/05/2013, 03:58 AM   #9
Gamer_007
Gangsta
 
Gamer_007's Avatar
 
Join Date: Dec 2011
Location: Connecting...
Posts: 684
Reputation: 11
Default Re: Random Race Generator (RouteConnector Contest) --- Create randomized races dynamically!

Looks Awesome.I am going to try it
Gamer_007 is offline   Reply With Quote
Old 18/05/2013, 12:13 PM   #10
Pettersen
Big Clucker
 
Pettersen's Avatar
 
Join Date: Apr 2013
Location: San Andreas
Posts: 158
Reputation: 9
Default Re: Random Race Generator (RouteConnector Contest) --- Create randomized races dynamically!

Wow, Epic!! Nice work.
__________________
Pettersen is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need some ideas for a GPS based Auto - race generator FS! RajatPawar General 0 28/02/2013 10:27 AM
How To Create Races? misho1 Scripting Help 2 28/06/2012 04:17 AM
[FilterScript] Create races Ingame [Simple] - With GUI denNorske Filterscripts 13 28/04/2012 09:31 PM
[FilterScript] Dialog Controller - Dynamically create and show dialogs [1.0.0|08/08/10] ev0lution Filterscripts 8 08/08/2010 12:04 PM


All times are GMT. The time now is 06:25 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.