NAVIGATION

   - Home
   - About
   - Forums

   - Download
   - Installation
   - Cvar List
   - SQL Support

   - FAQ
   - Troubleshooting
   - Changelog

   - Thanks

   - GunGame SQL

Step 1: Installing Modules (back to top)

  Firstly, verify that you are using AMXX 1.80 or later. You can do this by typing "amxx version" into your server console and observing the output. If you are not, you can download the latest version here.

  Next, you must enable the Fakemeta, Cstrike, and Ham Sandwich modules. You can do this by opening up your addons/amxmodx/configs/modules.ini file, and then removing the ; characters before the lines that read fakemeta and cstrike, and adding a new line that reads hamsandwich. The modules.ini file can be opened with any regular text editor (Notepad, for example).

  For example, your modules.ini file might look something like this (only bigger):

modules.ini:
fun
;engine
;fakemeta
;geoip
;sockets
;regex
;nvault
cstrike
csx
  As you can see, the fakemeta line still has a ; character, whereas the cstrike line does not. Also, we don't even have the hamsandwich module listed. This means that we need to change the fakemeta line and add a new one for Ham Sandwich. So it becomes:
modules.ini:
fun
;engine
fakemeta
;geoip
;sockets
;regex
;nvault
cstrike
csx
hamsandwich
  If your modules.ini file does not already have a cstrike line, you may have not yet downloaded the Counter-Strike mod pack for AMXX. You can do so here.

  After you have finished the above steps, you can check to see if you have properly enabled these modules by typing "amxx modules" into your server console and observing the output.

Step 2: Installing GunGame (back to top)

Step 2a: Full Package (back to top)

  The easiest way to install GunGame is to simply unzip the full package into your server's mod directory (cstrike/ or czero/). Actually, this is the only way to install GunGame.

  As of version 2.13, you have the option of downloading the "flat-file stats" package or the "SQL stats" package, depending on how you plan to store your players' stats. Flat-file stats are how stats were traditionally saved in previous versions. For more detailed information about using SQL stats, see the SQL page.

  After unzipping the package, you will still have to add a line to your addons/amxmodx/configs/plugins.ini file that reads gungame.amxx (make sure that it is on a line by itself). The plugins.ini file can be opened with any regular text editor, the same as modules.ini.

  For example, your plugins.ini file might look something like this (only, of course, bigger):

plugins.ini:
; Custom - Add 3rd party plugins here
plugin1.amxx
plugin2.amxx
plugin3.amxx
plugin4.amxx
  Just add gungame.amxx anywhere on the list:
plugins.ini:
; Custom - Add 3rd party plugins here
plugin1.amxx
plugin2.amxx
plugin3.amxx
plugin4.amxx
gungame.amxx

Step 3: Configuring GunGame (back to top)

  After you get all of the files in place, you will surely want to do a little bit of further configuration. The details below explain how.

Step 3a: Configuration File (back to top)

  Once your gungame.cfg file is in place (either in the mod directory or in AMXX's configs/ directory), you can open it up with any text editor (Notepad, Wordpad, etcetera) and configure GunGame to you or your players' liking (but let's face it, you're the one paying for the server). In order to understand what each cvar does, you should read the ridiculously large cvar list. The groups on that page correspond to the groups in the gungame.cfg file. It's strongly recommended that you read the cvar list and configure your gungame.cfg!

Step 3b: GunGame Map Cycle (back to top)

  If you wish to have a custom map cycle that is used only while GunGame is running, create a new file named gungame_mapcycle.txt in either the mod directory (cstrike/ or czero/) or in the addons/amxmodx/configs/ directory. There should be one map name per line, just like AMXX's maps.ini or the default mapcycle.txt file. The GunGame map cycle goes down the list until it reaches the end, and then starts back at the top. If you use the GunGame map cycle, GunGame will not attempt to start any map votes.

  Here is an example of a (small) gungame_mapcycle.txt file:

gungame_mapcycle.txt:
fy_iceworld2k
fy_grid2_cz
fy_iceworld_cz
fy_pool_day

Step 3c: Random Spawn Points (back to top)

  As of GunGame AMXX 1.10, you can install CSDM (Counter-Strike Deathmatch by BAILOPAN) spawn config files to be used by gg_dm_spawn_random. To get them, download CSDM from this page, and place all of the *.spawns.cfg files into the addons/amxmodx/configs/csdm/ folder. Once installed, if you have gg_dm set to 1 and gg_dm_spawn_random set to either 1 or 2, then players will be respawned at these random spawn locations instead of at their bases. See the cvar list for more information about Deathmatch Mode.

  You only need to download the *.spawns.cfg files from CSDM in order to have random spawn locations, you do not need to install the entire CSDM. However, you still can if you wish to, just remember to disable the weapon menu and turn off GunGame's own deathmatch mode (the gg_dm cvar).

  In addition, ToT | V!PER has compiled a great spawn config file package designed for CSDM and GunGame that you can download here.

Step 3d: SQL Database (back to top)

  As of version 2.13, you can choose to use SQL databases to store player stats instead of the traditional flat-file method. If you choose to use SQL and have installed the "SQL stats" package, then make sure to set your SQL cvars as explained on the SQL page.

  If you are upgrading from a previous version of GunGame AMXX and want to transfer your flat-file stats to your SQL database, make sure to see the SQL page for information on how to do so!

Step 4: Read up! (back to top)

  Now that you've got everything in place, it's time to figure out how to use it! It's recommended that you read the the cvar list, and that you take a look at the FAQ. If you have any lingering questions, feel free to ask in the forums.
1,581 visits
© 2007-2024
Privacy Policy