SA-MP Forums Archive
[GameMode] Capture The Ship [MySQL, custom maps, UNIQUE] - 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: Gamemode Scripts (https://sampforum.blast.hk/forumdisplay.php?fid=71)
+--- Thread: [GameMode] Capture The Ship [MySQL, custom maps, UNIQUE] (/showthread.php?tid=290131)

Pages: 1 2


Capture The Ship [MySQL, custom maps, UNIQUE] - Sinner - 14.10.2011

New WORKING mirror added!

Capture The Ship R1.0.1

NOTICE: If the MySQL tables don't build automatically:
MAKE SURE YOU FILL IN YOUR OWN DETAILS IN THE DEFINES.INC FILE AND RE-COMPILE THE GAMEMODE!!

Objective

- There are 2 team, the army and the terrorists. The game loops through a variety of custom maps, each will have 2 sides (for either teams) with in the middle a ship.

- The objective is to capture & defend the ship from the other team. This can be done using weapons or the vehicle spread throughout the map(s).

- The game will end when the time runs out, time per round is changeable

Features

- Automatic map changing
- Register & Login system (the same one Stunt Planet uses)
- Data saving with MySQL (adminlvl, score, time played, last login, register date, ...)
- A very nice GUI with Call-Of-Duty like looks
- A sophisticated capturing system
- Unique gamemode, never before created
- Ability to expand the gamemode easily

Screenshots








Credits

- Sinner (me): Script author
- Y-Less, incognito, G-Stylezz: Includes

Download
http://dl.sdec.eu/?file=capturetheship.rar

Please don't post other mirrors!

EDIT: Fixed team balancing when there are less then 2 players on each team


Re: Capture The Ship [MySQL, custom maps, UNIQUE] - noder51 - 14.10.2011

looks awesome gonna test it


Re: Capture The Ship [MySQL, custom maps, UNIQUE] - davve95 - 14.10.2011

Yes its looks awsome good job


Re: Capture The Ship [MySQL, custom maps, UNIQUE] - noder51 - 14.10.2011

nice! but how do i make myself admin?


Re: Capture The Ship [MySQL, custom maps, UNIQUE] - TheArcher - 14.10.2011

Epic gamemode , i'mma gonn to try it out XD


Re: Capture The Ship [MySQL, custom maps, UNIQUE] - noder51 - 14.10.2011

stats dosent save and how do i switch map


Re: Capture The Ship [MySQL, custom maps, UNIQUE] - Sinner - 14.10.2011

Quote:
Originally Posted by noder51
Посмотреть сообщение
stats dosent save and how do i switch map
You need to fill in your MySQL database details in pawn/includes/defines.inc
Map switches automatically after X minutes

Quote:
Originally Posted by noder51
Посмотреть сообщение
nice! but how do i make myself admin?
There isn't an admin system, but I already made a field in the MySQL database called "adminlvl" that can be used for admin level saving.


Re: Capture The Ship [MySQL, custom maps, UNIQUE] - Cold Fire - 14.10.2011

Can you help me in the MySQL thing because im new sry


Re: Capture The Ship [MySQL, custom maps, UNIQUE] - TheArcher - 14.10.2011

In this case you have to modify SQL details from a include. He made bit difficult way for MySQL.


Re: Capture The Ship [MySQL, custom maps, UNIQUE] - Cold Fire - 14.10.2011

Quote:
Originally Posted by TheArcher
Посмотреть сообщение
In this case you have to modify SQL details from a include. He made bit difficult way for MySQL.
so can u tell me like Step By Step?? because i never used MySQL before. if u cant its ok.


Re: Capture The Ship [MySQL, custom maps, UNIQUE] - Sinner - 14.10.2011

Quote:
Originally Posted by Cold Fire
Посмотреть сообщение
so can u tell me like Step By Step?? because i never used MySQL before. if u cant its ok.
1. Go to pawno/includes/defines.inc
2. Fill in this part with the details of your own MySQL database, if you don't have one I'm afraid you can't use this gamemode:

pawn Код:
#define SQL_HOST                "" // Your hostname
#define SQL_USER                "" // Your username
#define SQL_PASS                "" // Your password
#define SQL_DB                  "" // Your database name
for example:
pawn Код:
#define SQL_HOST                "physics.vost-host.com"
#define SQL_USER                "myusername"
#define SQL_PASS                "mypassword"
#define SQL_DB                  "db_cts"



Re: Capture The Ship [MySQL, custom maps, UNIQUE] - TheArcher - 14.10.2011

Quote:
Originally Posted by Cold Fire
Посмотреть сообщение
so can u tell me like Step By Step?? because i never used MySQL before. if u cant its ok.
Sinner just answerd you. but NOTE: You have to create the fileds in the database. If you have and use your server in localhost then you should use wamp or xampp. Otherwise tell to your hoster/provider about it.


Re: Capture The Ship [MySQL, custom maps, UNIQUE] - DiiP - 14.10.2011

Epic gamemode lol.


Re: Capture The Ship [MySQL, custom maps, UNIQUE] - Sinner - 15.10.2011

Quote:
Originally Posted by TheArcher
Посмотреть сообщение
Sinner just answerd you. but NOTE: You have to create the fileds in the database. If you have and use your server in localhost then you should use wamp or xampp. If not tell to your hoster/provider about it.
Nope

The function "sql_build();" will create all the fields FOR YOU. All you need is to follow my aforementioned steps.


Re: Capture The Ship [MySQL, custom maps, UNIQUE] - Sinner - 17.10.2011

bump


Re: Capture The Ship [MySQL, custom maps, UNIQUE] - manchestera - 22.10.2011

im hosting with serverffs for my server and mysql so do i put local or the hostname they give me?


Re: Capture The Ship [MySQL, custom maps, UNIQUE] - TheBetaFox - 28.11.2011

Hey, sorry for bumping, but does anyone have a mirror of this gamemode? I was interested in 'studying' it :P


Re: Capture The Ship [MySQL, custom maps, UNIQUE] - Nikid - 29.11.2011

Link


Re: Capture The Ship [MySQL, custom maps, UNIQUE] - English-Conceptz - 29.11.2011

not guna lie this looks EPIC. guna try it out later with some friends, thanking you in advance

linky linky please ??


Re: Capture The Ship [MySQL, custom maps, UNIQUE] - A.Johnson - 29.11.2011

Nice work!