Jump to content

Recommended Posts

Posted

Hi guys in this post i will be telling you about the amx_match_deluxe plugin this plugin is very useful for a server organizing a clan match, as it support various function like auto team swap, end of match when one team has won max round+1 matches etc.

 

--- Required Module(s) ---

 

    * Counter-strike

    * Regex

 

--- Optional Module(s) ---

 

    * Sockets

    * MySQL

 

 

Notes:

To use the HLTV ability, you will need to enable the Sockets module, which is included with Amx Mod X.

To also use the ability to record stats into SQL, you will also need to enable the SQL module.

Plugin supports:

 

    * MaxRound, TimeLimit, or Winlimit matches

    * Changing of the server hostname

    * Changing of the server password

    * Shield (un)restrictions (before and after matches)

    * Automatic swapping of the teams

    * Overtime

    * Overtime configs

    * Unlimited overtime *NEW*

    * Match server configs

    * Default(FFA) server config

    * Automatic screenshots

    * Automatic demos

    * Menus

    * PUG Style gameplay

    * Match stats, logged in files, or MySQL *NEW*

    * Knife round before first warmup period to decide teams *NEW*

 

 

Installation

: If your server is on your computer (or your external server supports unzipping) and you can unzip while keeping the correct directory structure, just unzip into your 'cstrike' directory.

 

Add this line to your plugins.ini file:                                              amx_match_deluxe.amxx ; Amx Match Deluxe

 

Restart hlds

 

- otherwise -

 

    * Copy 'amx_match_deluxe.amxx' to your plugins directory

    * Add this line to your plugins.ini file:                                      amx_match_deluxe.amxx ; AMX Match Deluxe

    * Copy the 'amxmd' folder to your "addons/amxmodx/configs/" folder

    * Copy amx_match_deluxe.txt to your "addons/amxmodx/data/lang" folder

    * Copy the 'data/match_stats' folder to your "addons/amxmodx/data" folder

    * Enable the correct modules in the modules.ini file (meaning DBI, Regex, and Sockets with the compiled plugin included in the zip file)

    * Restart hlds

 

 

Usage:

 

To load a match:

 

 

amx_match <CT's clan tag> <T's clan tag> <mrXX or tlXX> <Config filename> [recdemo|rechltv|recboth]

 

- or -

 

amx_match2 <mrXX or tlXX> <Config filename> [recdemo|rechltv|recboth]

 

- or -

 

amx_match3 <CT's clan tag> <T's clan tag> <mrXX or tlXX> <Config filename> <second map> [recdemo|rechltv|recboth]

 

- or -

 

amx_match4 <mrXX or tlXX> <Config filename> <second map> [recdemo|rechltv|recboth]

For example:

 

amx_match SK eoL mr12 ecup recboth

 

This will load a match with teams: "SK" and "eol", with MaxRound 12 rule,

using the ecup.cfg server config file, and will record demos and HLTV demos.

Note: if your clan tag has a space, use quote marks: "SK swe"

 

Other commands:

 

 

To restart a match: amx_matchrestart or "say /restart"

To stop a match: amx_matchstop or "say /stop"

To force the start of a match: amx_matchstart or "say /start"

To restart a half (re-lo3): amx_matchrelo3 or "say /relo3"

To swap teams: amx_swapteams

To randomize teams: amx_randomizeteams

 

The Menu:

 

 

First you must configure the menu, by using these commands:

 

 

amx_match_lmenu <length of match> [<length of match> ...]

amx_match_cmenu <Name of config> <config file name>

 

- or -

 

amx_match_addlength <length of match> [<length of match> ...]

amx_match_addconfig <Name of config> <config file name>

 

Note: the most common lengths and commands have already been added to amxmd.cfg

When it's done, just use the amx_matchmenu to load the menu and allow you to choose your match .

 

 

Cvars

:

 

 

amx_match_endtype:

 

 

Maxround:

 

0 -> Match is finished after all rounds are played. (set by default)

1 -> Match is finished when a team has won mp_maxrounds+1 rounds.

2 -> There is a vote to play out the match after a team has won maxrounds+1 rounds, unless rounds played is less than 1/5 of total rounds away from end of match).

 

Timelimit:

 

0 -> Match is finished immediately after the timelimit is up. (set by default)

1 -> Match is finished at end of the last round.

 

amx_match_hostname:

 

 

0 -> Does not change host name of server.

1 -> Changes host name of server to "<CT tag> vs.<T tag> | <CFG file> CS Match In Progress" or (amx_match2/4) "<CFG file> CS Match In Progress". (set by default)

 

amx_match_kniferound:

 

 

0 -> There is no knife round before the first warmup period to decide teams (set by default).

1 -> There is a knife round before the first warmup period to decide teams.

 

amx_match_overtime:

 

 

0 -> there is no overtime if there's a draw.

1 -> there is an overtime after a draw match (set by default).

 

amx_match_otcfg:

 

 

*Only use if you have set amx_match_overtime to 1*

0 -> there is no overtime config.

1 -> there is an overtime config (set by default).

 

amx_match_otlength:

 

 

*Only use if you have set amx_match_overtime to 1*

Length of overtime (3 rounds/minutes/wins by default).

 

amx_match_otunlimited:

 

 

*Only use if you have set amx_match_overtime to 1*

! Warning: Stats will not be logged if you use this cvar !

0 -> overtime is not unlimited (2 halves only). (set by default)

1 -> overtime is unlimited.

 

amx_match_password:

 

 

0 -> Match plugin will not password server before match.

1 -> Match plugin will password server before match, use with amx_match_password2. (set by default)

 

amx_match_password2:

 

 

*Only use if you have set amx_match_password to 1*

Use this cvar to set the value of password. (default value is "scrim")

 

amx_match_playerneed:

 

 

*Only use if you have set amx_match_readytype to 1*

This is the number of players which have to be ready (default value is "10").

(Set it to 4 if you want to play a 2 vs 2 match for example.)

 

amx_match_pugstyle:

 

 

0 -> PUG style gameplay is off. Server does not start matches automatically (set by default).

1 -> PUG style gameplay is on.

 

amx_match_randomizeteams:

 

 

0 -> Teams are not randomized before match (set by default).

1 -> Teams are randomized before match.

 

amx_match_readytype:

 

 

0 -> only one player of each side must say ready for the match to begin.

1 -> ALL players much say ready in order to start the match (set by default).

2 -> only an AMX admin can start the match by saying /start or amx_matchstart

 

amx_match_swaptype:

 

 

0 -> teams will not swap after the 1st half.

1 -> teams will swap automatically after the 1st half (set by default).

 

amx_match_screenshot:

 

 

0 -> no screenshot at all.

1 -> screenshot of the score is taken at the end of each half (set by default).

2 -> two screenshots are taken (one of the scores; one of the names and userids) at the end of each half.

 

amx_match_screenshot2:

 

 

0 -> no screenshot if match is stopped using amx_match_stop or "say /stop" .

1 -> screenshot of the score is taken at the end of each half, even if match is stopped using amx_match_stop or "say /stop" (set by default).

 

amx_match_shield: ( Make sure to enable 'restmenu.amxx' )

 

 

0 -> Plugin unrestricts shield during the match.

1 -> Plugin restricts shield during the match (set by default).

 

amx_match_shield2: ( Make sure to enable 'restmenu.amxx' )

 

 

0 -> Plugin unrestricts shield after match.

1 -> Plugin restricts shield after match (set by default).

 

amx_match_showscore:

 

 

0 -> Score will not be show after each round .

1 -> Score is shown after each round (set by default).

2 -> Score will be shown throughout entire match.

 

amx_match_stats:

 

 

0 -> Plugin does not log stats for each match (set by default).

1 -> Plugin logs stats for each match.

 

amx_match_warmupcfg:

 

 

0 -> Plugin does not use a warmup config during the warmup session (set by default).

1 -> Plugin uses a warmup config during the warmup session.

 

 

Config Files

:

 

'default.cfg' is a server config file which is executed before every match, along with the match config (cal.cfg). It can be used to disable some plug-ins like stats or set some default cvars which will erase your match config file cvars

 

'ffa.cfg' is the server config file which is executed at the end of the match in order that your server can be played by everyone =)

 

'warmup.cfg' is the warmup session config file. Add any cvars of plugins here that you want changed during the warmup session

 

'amxmd.cfg' is the main match config file. Change default cvar values in here. You can also add config files and match lengths into this file.

 

'pug.ini' contains the default match command for PUG style gameplay

 

'hltv.ini' contains the hltv password that the match plugin uses to record hltv demos

 

'defaultmaps.ini' contains the default maps for your mod. Note: The plugin searches your map directory for any maps that aren't in this list;

This file can be used to list your maps, but make sure to not delete the default maps from the file.

 

 

SQL help

:

 

 

/!\ IF YOU DON'T WANT TO USE THE SQL MODULE, YOU HAVE TO COMMENT THE LINE "#define AMXMD_USE_SQL" AND RECOMPILE THE PLUGIN (read AMXX readme/doc). /!\

http://wiki.amxmodx.org/Configuring_AMX_Mod_X#SQL

Note: If you are not getting stats added to your database, search your log files for:

 

[AMXX] SQL Connection Failed

 

If you are getting that error, there is a problem with your sql.cfg file, or your SQL server is not configured correctly.

 

 

Web help

:

 

  1. Open web/config.php

  2. Edit config.php file for the correct information:

          * $mysql_host -- Hostname of your SQL server (Can also use ip address, e.g. '127.0.0.1')

          * $mysql_username -- User name of your SQL server

          * $mysql_password -- Password for the username used

          * $mysql_database -- Database name on your SQL server

  3. Upload files to your web server

 

HLTV help

:

 

 

/!\ IF YOU DON'T WANT TO USE THE SOCKETS MODULE (FOR THE HLTV), YOU HAVE TO COMMENT THE LINE "#define AMXMD_USE_HLTV" AND RECOMPILE THE PLUGIN (read AMXX readme/doc). /!\

To configure your HLTV:

In order to be able to control the HLTV, you must know the rcon password. HLTV rcon can be set using "adminpassword" command in the HLTV console

HLTV Checklist:

 

    * Load your HLTV.

    * Set the HLTV adminpassword by using adminpassword <rcon> command in the HLTV console. Then connect it to your server using "connect ip:port" in the console.

    * Set the HLTV adminpassword in the 'hltv.ini' config file.

    * Load your match on the server using amx_match or amx_match2

        1. If your HLTV is already connected, you should see it say " HLTV correctly configured =)".

        2. If you don't see that, it means that the HLTV adminpassword hasn't been correctly configured.

        3. If your HLTV isn't connected, it will try the adminpassword that you've set when it enters the server.

 

Note: If you are using specific sv_maxrate sv_minrate sv_maxupdaterate and av_minupdaterate then edit the cal.cfg and calot.cfg as it set the server rates to

 

sv_minrate 0

sv_maxrate 25000

sv_maxupdaterate 100

sv_minupdaterate 0

 

 

DOWNLOAD LINK

 

Credits:Mut2nt

  • 2 weeks later...
  • 1 month later...
Posted

You can also modify the ''bla bla bla'' of the plugin like on the top which it says:remember to record demos....you can modify it from  Data/Lang if i remember well..

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...