SA-MP Forums

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

Thread Tools Display Modes
Old 17/11/2015, 02:28 AM   #1
Big Clucker
Join Date: Dec 2010
Posts: 138
Reputation: 2
Default SyntaxAnteinoDerby derby mode

Disclaimer: This thing is a work in progress, most things are tested, but bugs may occur. Please report them to me!

I need your help! This thing needs to be tested thoroughly, please pm me if you are interested in supporting and help developing an ambitious project. I would really like to make this a community based product. I already provided the core derby module and are planning great improvements for the future, now let me use your feedback to improve it even further!

Because everytime in a derby I get pushed off in the beginning it's a long boring wait until I can play again! No derby I've seen yet has done something to amuse the eliminated players in the meantime. I thought it was time to start such a project.

My idea is to create a whole and complex derby which makes it fun for all the players in it. By combining elements of current derby modes and adding new things I want to create a new game that will provide longer lasting fun. To give a short summary, nobody will ever be bored because eliminated players are placed on a platform with rocket launchers enabling them to mess with other players still in the race. But I plan to do more than just that. If you're interested in my future aspirations, scroll down!

The code is fully documented, but here's a summary of achievements so far.

The code can be found in /filterscripts/derby.pwn with the according defines in /filterscripts/

When the derby filterscript is launched, an array is created which contains the information of up to 20 players, this value can of course be changed. The array contains information about the player when they joined the derby as well as information on the status of the player in the derby. The index of this array, which corresponds to a specific player, and thus playerid, is called the derbyId of the player. As soon as there is a sufficient (tunable) amount of players the derby is started. A custom thread keeps track of everything that happens in the derby. As soon as a player falls of the platform / map they are called eliminated and are placed on a high pillar in the middle of the playing field. They are then given a rocket launcher to mess with the remaining players. It takes the rocket about 2 seconds to reach the ground, giving the players some room to drive away from impact zone. A nice little twist here is that the camera viewing angle cannot be rotated to the top of the pillar, so the players can never see the rockets coming. When a certain game time has passed or only one player is left, the game is ended. When a player exits, it will be reset to their old position, health condition and ammunition. There's also an Anti Cheat module (currently out of order) and a /kickvote system to keep the derby fair.

Game rules
There are three main Boolean values in the game which are of great importance:
* derbyStarted
* derbyCountDownStarted
* vehiclesSetUp

In this table, it can be seen what combinations are related to what game states chronologically:

After the first two players joined, a countdown is started, giving other players the time to join. When this timer is hit and there are still enough players, derbyCountDownStarted is triggered. When the countdown is through, derbyStarted is triggered. When the max game duration is achieved or only one player is left the game and its variables are reset.

Players can be kicked for cheating, AFK and kickvote. Nitro is a definable option.

Future aspirations
  • Anti cheat module
  • Moving objects
  • Periodic powerups on the track
  • Roulating worlds/derbies
  • Language modules

Credits go to the SA-MP for their awesome mod, Zeex for ZCMD, ****** for sscanf2, Incognito for his streamer and last but not least, to GamerZ for his AntiCheat module.

All the files can be found in the github repository:

Screenshots will follow soon. Hope you enjoy it!
Attached Images
File Type: png Capture.PNG (9.9 KB, 339 views)
File Type: jpg sa-mp-003.jpg (188.9 KB, 370 views)
File Type: jpg sa-mp-005.jpg (181.1 KB, 348 views)
File Type: jpg sa-mp-007.jpg (196.0 KB, 341 views)
File Type: jpg sa-mp-010.jpg (196.2 KB, 342 views)
Let's solve problems!

Last edited by Anteino; 17/11/2015 at 03:04 AM. Reason: Adding notifications
Anteino is offline   Reply With Quote
Old 17/11/2015, 02:30 AM   #2
Big Clucker
Join Date: Dec 2010
Posts: 138
Reputation: 2
Default Re: SyntaxAnteinoDerby derby mode

Reserved #1
Let's solve problems!
Anteino is offline   Reply With Quote
Old 17/11/2015, 02:34 AM   #3
Big Clucker
Join Date: Dec 2010
Posts: 138
Reputation: 2
Default Re: SyntaxAnteinoDerby derby mode

Reserved #2
Let's solve problems!
Anteino is offline   Reply With Quote
Old 17/11/2015, 07:10 AM   #4
Karan007's Avatar
Join Date: Feb 2015
Posts: 539
Reputation: 67
Default Re: SyntaxAnteinoDerby derby mode

Nicely, explained, good job.
Karan007 is offline   Reply With Quote

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
Looking for Demolition Derby Game Mode?? kidx General 2 03/09/2011 11:06 AM
how to make a demolition derby mode? knackworst Help Archive 0 16/10/2010 09:23 PM

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

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