SA-MP Forums Archive
[FilterScript] PRaceSystem + Race Editor v1.3 - 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: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] PRaceSystem + Race Editor v1.3 (/showthread.php?tid=241681)

Pages: 1 2


PRaceSystem + Race Editor v1.3 - Phanto90 - 18.03.2011


[FS]PRaceSystem by Phanto
Version: 1.3


Updated to version 1.3! Enjoy!



Note: The old check#.txt file are no longer compatible.

Description:
Tired of your server? Don't worry! Here it is a nice filterscript that allows you to race with your friends in various tracks and awesome race modes. You can also build your own race in few minutes with the new Race Editor implemented.
Modify as you need but reminds to keep credits!
Try it out!


Features:
• 3 types of race: Circuit, Sprint & Chase (innovative Chase system)
• The system saves best times on tracks (time & player's name)
• Different Players can also race at the same time on different tracks.
• There is not limit for players joining a race (exception for Chase races where the limit is of 2 players)
• Once the race start, player cannot join anymore until the race finish
• Nice and functional system
• Use of nice textdraw (Example: Laps/Time/starting traffic-lights)
• In-game Race Editor
• Coloured strings (only Sa:mp 0.3c)

Commands:
• /race
• /quitrace
• /ready
• /builder (Rcon Admin - Enter builder mode)
• /check (Rcon Admin - Used in builder mode)
• /endcheck (Rcon Admin - End Race Editing and saves it)


Changelog:
//V 1.1
• Fixed a bug dealing with /quitrace when the race wasn't started yet
• Added a In-Game Race Editor
//V 1.2
• Added Chase race type
• Improved race editor to build also Chase races
//V 1.2.1
• Fixed a serious bug in OnDialogResponse callback
//V 1.3
• Rewrited reading/writing checkpoint system. Now you can manage infinite checkpoint!

Known bug:
• No one for now.

Conflicts or problem:
• If you have another race system, I suggest to remove it before mounting this one.
• Be sure not to have used OnPlayerEnter/ExitRaceCheckpoint & OnPlayerEnter/ExitCheckpoint functions in your gamemode in order to make works the system without generating conflicts.
• You need sscanf plugin by Y_Less in order to make work properly the server. Can be found Here

How do I build my race?:
• Simply type the command /builder when logged as Rcon Admin and follow instructions.

Planning for the next version..
• Rewrite saving/loading race system. Two file for 1 race is too fragmentary as file system.
• Autovelox race mode
• Drift race mode
• Fly race mode

Best comments:
Quote:
Originally Posted by stigg
The multirace part is stable. One of the better race engines i have played with in a while.
Thanks for the share, can't wait for the update with a chase system. Great work.
Quote:
Originally Posted by lorenc_
I'd say so far this looks like a great stable Race system so far, many of them didn't really catch my interest but this did
Hoping you will enjoy my work! Best Regards Phanto


Download:
PRaceSystem v1.3 + Default test races (solidfiles)
PRaceSystem v1.3 (pastebin)
Default test races (solidfiles)


*Note:
If you download it from pastebin you will need the Race directory with default Races for the first run! (scriptfiles/Races/)

**Note: You need sscanf plugin by Y_Less in order to make work properly the script. It can be found Here
Code:
Credits:
Phanto90 for PRaceSystem
Y_Less for Sscanf (plugin and related include)



Re: PRace System + Race Editor (added Chase race system) v1.2 - Nexotronix - 18.03.2011

Damn?. you crazy, that chase race system the best =)


Re: PRace System + Race Editor (added Chase race system) v1.2 - vyper - 18.03.2011

Nice but why another topic for this ?


Re: PRace System + Race Editor (added Chase race system) v1.2 - Phanto90 - 18.03.2011

I was inspired by need for speed carbon :P

@Vyper:Sorry, i didn't want do modify the last xD I thought some pepole would say "nahh it's the same thing as the last version"
Anyway thanks


Re: PRace System + Race Editor (added Chase race system) v1.2 - Phanto90 - 18.03.2011

Sorry for the double post, i thought it was a nice idea to include some screens in the post


Re: PRace System + Race Editor (added Chase race system) v1.2 - PANTHERX - 18.03.2011

Thank you Did to teleport to the race could be the car please


Re: PRace System + Race Editor (added Chase race system) v1.2 - Phanto90 - 18.03.2011

I suggest to create some car near the starting points to avoid caos.


Re: PRace System + Race Editor (added Chase race system) v1.2 - PANTHERX - 18.03.2011

Quote:
Originally Posted by Phanto90
View Post
I suggest to create some car near the starting points to avoid caos.
Then you better in the virtual world do with the car =)


Re: PRace System + Race Editor (added Chase race system) v1.2 - Pz - 18.03.2011

This thing is crazy! Well done out there, buddy.


Re: PRace System + Race Editor (added Chase race system) v1.2 - Phanto90 - 18.03.2011

Quote:
Originally Posted by Pz
View Post
This thing is crazy! Well done out there, buddy.
Thanks dude


Re: PRace System + Race Editor (added Chase race system) v1.2 - Venice - 19.03.2011

Really Nice Man


Re: PRace System + Race Editor (added Chase race system) v1.2 - Phanto90 - 19.03.2011

Quote:
Originally Posted by venice
View Post
Really Nice Man
Hell yeah! :P


Re: PRace System + Race Editor (added Chase race system) v1.2 - Gemini - 19.03.2011

How do i make it teleportable with cars?


Re: PRace System + Race Editor (added Chase race system) v1.2 - Phanto90 - 19.03.2011

Quote:
Originally Posted by Gemini
View Post
How do i make it teleportable with cars?
I suggest to create vehicles near the starting point to avoid car collision (and casualities) when player teleports in cars

If you want to teleport also the vehicle simply go to
Code:
SetPlayerPos(playerid....)
And sobstitute with
Code:
if(IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid)==PLAYER_STATE_DRIVER)
SetVehiclePos(GetPlayerVehicleID(playerid),.....); //Sobstitute coord.
else
SetPlayerPos(playerid,...);



Re: PRace System + Race Editor (added Chase race system) v1.2 - elledioi90 - 20.03.2011

I think that is better to create some vehicles with AddStaticVehicles near the initial checkpoint for every races rather than teleport with the current vehicle


Re: PRace System + Race Editor (added Chase race system) v1.2 - Stigg - 20.03.2011

Quote:
Originally Posted by elledioi90
View Post
I think that is better to create some vehicles with AddStaticVehicles near the initial checkpoint for every races rather than teleport with the current vehicle
This is easy to impliment yourself.


Re: PRace System + Race Editor (added Chase race system) v1.2 - elledioi90 - 20.03.2011

Quote:
Originally Posted by Stigg
View Post
This is easy to impliment yourself.
It was a suggest to Gemini


Re: PRace System + Race Editor (added Chase race system) v1.2 - Stigg - 20.03.2011

Quote:
Originally Posted by elledioi90
View Post
It was a suggest to Gemini
So was mine..lolz


Re: PRace System + Race Editor (added Chase race system) v1.2 - Phanto90 - 20.03.2011

Sure, as you two suggest it is better to add vechicles


Re: PRace System + Race Editor (added Chase race system) v1.2 - Stigg - 20.03.2011

Quote:
Originally Posted by Phanto90
View Post
Sure, as you two suggest it is better to add vechicles
The chase system is mint m8, original. Very well done.