[FilterScript] PRaceSystem + Race Editor v1.3
#1


[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)
Reply
#2

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

Nice but why another topic for this ?
Reply
#4

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
Reply
#5

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

Thank you Did to teleport to the race could be the car please
Reply
#7

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

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 =)
Reply
#9

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

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

Really Nice Man
Reply
#12

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

How do i make it teleportable with cars?
Reply
#14

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,...);
Reply
#15

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
Reply
#16

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.
Reply
#17

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

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

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

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.
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)