SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Gamemode Scripts

Reply
 
Thread Tools Display Modes
Old 10/03/2020, 06:05 PM   #1
Variable™
Gangsta
 
Variable™'s Avatar
 
Join Date: Jul 2015
Posts: 828
Reputation: 200
Flowers SWAT vs Terrorists - Open Sourced! [0.3.7][MySQL R41-2][YSI][ColAndreas]

History

This gamescript was developed from early 2016 till this day, many features were added and many were removed, till it reached a good taste that people liked, and that made it the SWAT vs Terrorists it is today. A team-deathmatch gamescript with a lot of interesting features coded in a beautiful way and tested for too long, till it reached a stable state that people enjoyed playing.

Dependencies

This game script depends on the following packages in order to work:

Some dependencies are included within the repository - some are not (i.e. SA-MP includes and YSI 4.x, you have to download those)

Compiling

I remember using the community compiler (I think it's available on GitHub, search for it). Some dependencies mentioned above might require other stuff in order to work, I'm sure you will figure that out as you compile the script.

Important Notes
  • You may not use the same name styling as we do for the hostname, or attempt to copy our server
  • You may not use this source code to exploit our server
  • You may not link your server with h2omultiplayer.com
  • You have to keep all the credits, but you can add your name to the credits!
  • I'm providing this script as-is and can tell that it is licensed under GNU GPL v3 at the moment

Credits
  • Me for coding this script from scratch
  • ****** for YSI which has the most useful includes I used actually
  • Include developers mentioned above in #Dependencies
  • Some mapping and code snippets were taken from the MW3 game script
  • Anyone whose work is used in this script is credited, thank you!
  • You for editing this script, but be nice and keep a credit for people you use their work

Pre-Installation Requirements

* A functional MySQL server with a user that actually has access to a database
* A discord bot token for the bot to work, more information can be found on the official plugin's GitHub Repository https://github.com/maddinat0r/samp-discord-connector

* SA-MP 0.3.7 (or later) Server Executable Files [https://www.sa-mp.com/download.php]
* A little knowledge in how to get things working
* A mail php script to handle HTTP requests in "players/auth/email.pwn" I commented it, but it's actually needed!

Installation
  • Import database .SQL files in "gamemodes/database" to your MySQL database
  • Edit "gamemodes/server/database.pwn" with your MySQL connection details
  • Edit "gamemodes/server/header.pwn" with your discord information (above dcc include)
  • Modify server information under OnGameModeInit [in gamemodes/server/init.pwn] and in the header files [in gamemodes/server/header.pwn] (i.e. for bot config, hostname and so on)
  • Recompile the gamemode script
  • Modify server.cfg with your discord bot token
  • Move the .exe files from the SA-MP Server package you downloaded to the server's directory
  • Launch samp-server.exe!
Other words...

I, H2O and known as Variable am proud to present this script to you all. It's been a pleasure working on this script, I learnt much as I developed it, and today I'm happy to share my knowledge with you. I know you may not use this script to create a server but you probably want to learn how other big servers like this one has been, was developed. I want you to use it wisely, learn how stuff were implemented and do better. I don't promise updating this script anymore, but I have seriously been working on this script from early 2016 and till this day, adding features and removing useless ones, following standard coding styles and modern techniques to provide this script finally in 2020. This script ran with over 90 players smoothly, never lagged or encountered troubles handling large player numbers for days, weeks and months. But today, the server isn't even as active as it used to be, and I would like people to learn how it was developed, and to make better than it. Thanks SA-MP for letting me get into programming and making me interesting in learning other programming languages to make my own server. I spent a long time in SA-MP, and it's time to pay-back this community for how helpful it was to me during my time on it.

Thank you SA-MP, ******, anyone who helped make this script or test it, and everyone who spent time in the community. Thanks for the donors and sponsors who kept the community running smoothly for all those years.

Thanks to anyone whose discussions helped me learn more stuff, and especially the management team.

Thank you all.
Peace and love, love and peace.
H2O MULTIPLAYER!
https://h2omultiplayer.com/

Update it!

Don't let it outdated, add your touch to the game and let other see your work on the main server, and you can simply add your name to the credits.

You can simply fork this repository, add as much modifications as you like but please follow the same style as the game is now, and same indentation (K&R).

Repository
https://github.com/h2o-variable/publ...-vs-terrorists

Aaand finally, don't forget to add the .cadb file for ColAndreas to work!

Fun facts...
  1. This script included an achievements system that was nice but wasn't really important so I decided to remove it, but it will be nice if you make one
  2. Most server messages (excluding admin messages that are sent to admins) are available in language files that are located in scriptfiles/YSI so you can have more than one language
  3. Important declarations and are available in the header files, including team names and so on
  4. Implementations are available in various models
Variable™ is offline   Reply With Quote
Old 10/03/2020, 06:09 PM   #2
denNorske
Gangsta
 
denNorske's Avatar
 
Join Date: Nov 2011
Location: Oslo, Norway
Posts: 789
Reputation: 95
Default Re: SWAT vs Terrorists - Open Sourced! [0.3.7][MySQL R41-2][YSI][ColAndreas]

Great release my friend!

Great decision to open-source it, as it is a fantastic piece of code
__________________
xSF source has been publicly released: Available on git (https://git.ducky.rocks/denNorske/xsf-official-gamemode)
Useful Racespawn generator: https://forum.sa-mp.com/showpost.php...postcount=3777
Get an overview over your map objects: Check it here!
denNorske is offline   Reply With Quote
Old 10/03/2020, 06:31 PM   #3
Hazon
Huge Clucker
 
Hazon's Avatar
 
Join Date: May 2018
Location: Who cares ?
Posts: 206
Reputation: 37
Default Re: SWAT vs Terrorists - Open Sourced! [0.3.7][MySQL R41-2][YSI][ColAndreas]

I've played it when it had a good amount of players. I will always remember an amazing people and admins and those are P3pSy, Nightmare and Hydra (such a sweet and calm guy) and you ofc. I heard you all were in Lords Of War as a team but it closed and sad it didnt countinue as it was popular. and its sad those people left SAMP and you never had something more with them.

People I mentioned are legends to me. Such a good and calm people I wish I meet them IRL..

Amazing work.
Hazon is online now   Reply With Quote
Old 11/03/2020, 07:42 AM   #4
DargSiro420
Little Clucker
 
DargSiro420's Avatar
 
Join Date: Mar 2019
Location: Germany
Posts: 4
Reputation: 0
Default Re: SWAT vs Terrorists - Open Sourced! [0.3.7][MySQL R41-2][YSI][ColAndreas]

Great script, great server, great community! Awesome release.
DargSiro420 is offline   Reply With Quote
Old 11/03/2020, 11:26 AM   #5
Alfe
Little Clucker
 
Join Date: Feb 2015
Posts: 1
Reputation: 0
Default Re: SWAT vs Terrorists - Open Sourced! [0.3.7][MySQL R41-2][YSI][ColAndreas]

Woaaaaaah your community was great.
Alfe is offline   Reply With Quote
Old 11/03/2020, 02:18 PM   #6
Symon
Gangsta
 
Symon's Avatar
 
Join Date: Apr 2019
Location: Italy
Posts: 989
Reputation: 107
Default Re: SWAT vs Terrorists - Open Sourced! [0.3.7][MySQL R41-2][YSI][ColAndreas]

I have played many times in your server and i'm sad to see a masterpiece like this (still better than 90% of released gamemodes here) being released. Good job tho.
__________________
Epic Missions - An upcoming mini missions server.

Fully MySQL featured, no server restart during a mission change, many different mission types available (TDM, DM, BOMBING, LMS, LTS etc.), perks, rewards, level system and much more. Join us and wait for the launch!


Website | Forum | Development logs | Join our Discord
Symon is offline   Reply With Quote
Old 11/03/2020, 07:43 PM   #7
Uvais
Big Clucker
 
Uvais's Avatar
 
Join Date: Oct 2015
Location: Pakistan
Posts: 175
Reputation: 19
Default Re: SWAT vs Terrorists - Open Sourced! [0.3.7][MySQL R41-2][YSI][ColAndreas]

Played the server several times, me and my friends. It is a masterpiece, no doubt. Awesome work.
__________________
Uvais is offline   Reply With Quote
Old 12/03/2020, 06:23 PM   #8
AkiraR
Little Clucker
 
AkiraR's Avatar
 
Join Date: Jul 2019
Posts: 39
Reputation: 3
Default Re: SWAT vs Terrorists - Open Sourced! [0.3.7][MySQL R41-2][YSI][ColAndreas]

Woo-hoo! As an avid player I can't say I recommend everyone to download and start overusing this GM. But what I can say for a local-lan play or a clan, it's def worth it!
__________________
#a k i r a r.
Community Project Lead
Vanilla Remastered
vanilla-remastered.com
-
I do not encourage the use of SAMP Add-On.
Grand Theft Auto series - Need for Speed series - Steam Related series
AkiraR 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



All times are GMT. The time now is 02:17 PM.


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