AMX Match Plugin
-=[ AMX Match Deluxe ]=-
Originally coded by Shromilder
Upgraded and converted to Amx Mod X by Infra
Current version: 8.11
-- Only works with AMXX 1.75 or later! --
-- Requires admin level "m" --
--- Required Module(s) ---
- Counter-strike
- Regex
- 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:Other commands:
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 recbothThis 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"The Menu:
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
First you must configure the menu, by using these commands:Note: the most common lengths and commands have already been added to amxmd.cfg
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>
When it's done, just use the amx_matchmenu to load the menu and allow you to choose your match .
Cvars:
amx_match_endtype:amx_match_hostname:
Maxround:0 -> Match is finished after all rounds are played. (set by default)Timelimit:
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).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_kniferound:
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_overtime:
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_otcfg:
0 -> there is no overtime if there's a draw.
1 -> there is an overtime after a draw match (set by default).amx_match_otlength:
*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_otunlimited:
*Only use if you have set amx_match_overtime to 1*
Length of overtime (3 rounds/minutes/wins by default).amx_match_password:
*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_password2:
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_playerneed:
*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_pugstyle:
*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_randomizeteams:
0 -> PUG style gameplay is off. Server does not start matches automatically (set by default).
1 -> PUG style gameplay is on.amx_match_readytype:
0 -> Teams are not randomized before match (set by default).
1 -> Teams are randomized before match.amx_match_swaptype:
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_matchstartamx_match_screenshot:
0 -> teams will not swap after the 1st half.
1 -> teams will swap automatically after the 1st half (set by default).amx_match_screenshot2:
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_shield: ( Make sure to enable 'restmenu.amxx' )
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_shield2: ( 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_showscore:
0 -> Plugin unrestricts shield after match.
1 -> Plugin restricts shield after match (set by default).amx_match_stats:
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_warmupcfg:
0 -> Plugin does not log stats for each match (set by default).
1 -> Plugin logs stats for each match.
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 FailedIf you are getting that error, there is a problem with your sql.cfg file, or your SQL server is not configured correctly.
Web help:
- Open web/config.php
- 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
- 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
- If your HLTV is already connected, you should see it say " HLTV correctly configured =)".
- If you don't see that, it means that the HLTV adminpassword hasn't been correctly configured.
- If your HLTV isn't connected, it will try the adminpassword that you've set when it enters the server.
Changelog:
8.11: (minor release) - Sunday, June 24, 2007------
fixed bug in stats_log where plugin would not compile with SQL stats disabled
8.10: (semi-major release) - Sunday, June 24, 2007------
added multi-lingual support to menu headings---changed the sql functions to only log an error when they failed to connect to the sql server, rather than fail the plugin
changed picking of teams after a knife round to a vote, rather than say commands
changed pug style games to change to next map in the mapcycle rather than to a default map (i.e. only to dust2)---fixed hltv delay bug where second half demos were being cut off after only 30 seconds or so
fixed bug in knife round where users could still fire one shot with the pistol before being forced to switch to knife
8.02: (minor release) - Tuesday, May 22, 2007------
fixed typo in knife round's start message: "KNIFE_ROUND_STARTED" vs. "KNIFE_ROUND_START"
8.01: (minor release) - Sunday, May 20, 2007------
fixed bug where after a team had won in a knife-round only Ts could pick a team, even if CTs won
fixed bug where you could still type 'ready' in knife round
fixed bug where teams would be swapped, but the clan names wouldn't after a knife round
fixed bug where ready list would still display "None." even after the first player was ready---changed sequence of knife round/warmup/first half (now start-]warmup-]knife round-]warmup-]first half)
8.00: (major release) - Friday, May 18, 2007------
added French translation, thanks AIA-Shogun
added updated German translation, thanks ToT | V!PER
added br translation, thanks rfrik
added Serbian translation, thanks iggy_bus---fixed hltv bug, thanks AIA-Shogun
fixed hltv delay bug---added knife round
added unlimited overtime support
added cvar 'amx_match_otunlimited'
added MySQL support for recording stats
added PHP/MySQL web interface to display SQL stats---changed name of cvar: 'amx_match_overtimecfg' to 'amx_match_otcfg', to match other overtime cvar names
changed format of hltv demos to remove duplicate parts of the demo name
changed the format for logging stats to the match half file (check that file for the new format)
7.03: (minor release) - Monday, November 13, 2006------
fixed runtime error when executing a match
7.02: (minor release) - Friday, November 10, 2006------
added warmup configs
added constants for all file handles so all hardcoded file names are all variables and in one place
added cvar amx_match_warmupcfg.---fixed problem where match would not end, if match played through all rounds and endtype was not 0---changed the format of the teams for the logging: CT -] 2, T -] 1 (instead of CT -] 1, T -] 2)---removed french translation due to all of the problems that the incomplete translation is causing. (Will add it back in once somebody translates it again)
7.01: (minor release) - Friday, July 21, 2006------
fixed OT portion of the plugin. Overtime works correctly now...
fixed bug where password would be shown to all players if the server console started a match (id=0)
fixed bug where first map's name was used for demos during second map in a two map match.---updated swedish translation for five missing translation tags, thanks TheLinx.
7.00: (major release) - Saturday, July 15, 2006
added PUG type gameplay (See www.sk-gaming.com for details) turned on by cvar
added winlimit type matches
added logging to HL logs as well as AMXX logs
added printing to server console as well as AMXX logs
added two new console commands 'amx_match_addlength' and 'amx_match_addconfig' (equiv. to server commands: 'amx_match_lmenu' and 'amx_match_cmenu')
added two map matches (amx_match3 and amx_match4)
added logging of match stats
added new command 'say /relo3'
added new command 'amx_matchrelo3'
added ability to restart the half as well as the match
added ability for league files to be in the main cstrike directory as well as in '/amxmd/leagues/'
added file: 'defaultmaps.ini' for maps list in the menu
added polish translation, thanks rain.
added danish translation, thanks ZiP*.
added czech translation, thanks James.
added team randomizer, thanks for the idea Eklundh
added cvar amx_match_pugstyle
added cvar amx_match_randomizeteams
added cvar amx_match_stats---alphabatized the translation file (amx_match_deluxe.txt)---changed swap_teams to support the new cs_user_change_team functions (Swaps without killing the player)
changed the order of menus (removed 'match_type -> mr13'; added 'MatchType -> MR/TL/WL' and 'MatchLength -> 13'; added a menu for Tags/No Tags between CT Tags and the main menu )
changed all hud message channels (except the timer and show_score functions) to -1.
changed the way the plugin looks for the config file list in match_start; cfglist.txt is not used anymore
changed the settings menu to disable the dependent settings when the independent settings are disabled (amx_match_otlength and amx_match_overtimecfg, when amx_match_overtime is disabled, for instance)
changed the readme to html format
changed the defaults for some of the cvars (refer to cvar portion of the readme)---fixed menu settings function so it's not completely dependent on what cvars are registered (can't think of a way to completely get away from dependency)
fixed hltv delay, it actually delays the hltv now...
fixed all multilingual lines of code to use 'id' and 'LANG_PLAYER' properly---updated swedish translation, thanks TheLinx.
updated german translation, thanks pl2003.---reformated function names
reformated variable names---removed support for NO_STEAM---rewrote 'new_score' and 'start_match' functions
- completely new layouts
- way easier to debug
Download link: http://forums.alliedmods.net/showthread.php?p=50388
12:31 AM | 0 Comments
AMX Super Extension
To go along with the updated AMX Super, we have customized a couple of plugins just for you. Remember these are completely optional, but they are quite handy.
Installing:
- Download the plugin below
- Place the .amxx of that plugin in your server's addons/amxmodx/plugins folder
- Open plugins.ini found in addons/amxmodx/configs
- Add the following line at the bottom of the file: PluginName.amxx (Replace PluginName with the actual name)
- Save and close plugins.ini
- Restart your server or change the map
- Done
- High Ping Kicker - Kicks High Pingers in your Server
- Admin Slash - Enables all amx_ prefix commands to be done with a / in game chat
Download Link:
12:23 AM | 0 Comments
AMX Super 4.2 New Release
SuperCentral Wiki
- AMX Super Documentation (FAQ / All Documentation)
Commands / Flags / Usage
Client Commands:
- say /gravity - check_gravity
- say /alltalk - check_alltalk
- say /fixsound
- say /spec
- say /unspec
- say /admins - show_admins
- say /admin - show_admins
- say block_gagged - Blocks the gagged
- say team - block_gagged
- say jointeam - join_team
Admin Commands:
Access Custom Flag M / (Users.ini)
amx_heal - ADMIN_LEVEL_A,"<nick, #userid, authid or @team> <HP to give>")
amx_armor - ADMIN_LEVEL_A,"<nick, #userid, authid or @team> <armor to give>")
amx_teleport - ADMIN_LEVEL_A,"<nick, #userid or authid> [x] [y] [z]")
amx_userorigin - ADMIN_LEVEL_A,"<nick, #userid or authid")
amx_stack - ADMIN_LEVEL_A,"<nick, #userid or authid> [0|1|2]")
amx_alltalk - ADMIN_LEVEL_A,"[1 = ON | 0 = OFF]")
amx_gravity - ADMIN_LEVEL_A,"<gravity #>")
amx_unammo - ADMIN_LEVEL_A, "<nick, #userid or @team> [0|1] - 0=OFF 1=ON")
amx_extend - admin_extend",ADMIN_LEVEL_A,"<added time to extend> : ex. 5, if you want to extend it five more minutes.")
amx_gag - ADMIN_LEVEL_A,"<nick, #userid or authid> <a|b|c> <time> - Flags: a = Normal Chat | b = Team Chat | c = Voicecomm")
amx_ungag - ADMIN_LEVEL_A,"<nick, #userid or authid>")
Access Custom Flag N
amx_bury - ADMIN_LEVEL_B,"<nick, #userid, authid or @team>")
amx_unbury - ADMIN_LEVEL_B,"<nick, #userid, authid or @team>")
amx_disarm - ADMIN_LEVEL_B,"<nick, #userid, authid or @team>")
amx_slay2 - ADMIN_LEVEL_B,"<nick, #userid, authid or @team> [1-Lightning|2-Blood|3-Explode]")
amx_rocket - ADMIN_LEVEL_B,"<nick, #userid, authid or @team>")
amx_fire - ADMIN_LEVEL_B,"<nick, #userid or authid or @team>")
amx_uberslap - ADMIN_LEVEL_B,"<nick, #userid or authid>")
amx_flash - ADMIN_LEVEL_B,"<nick, #userid, authid or @team> - Flashes player(s)")
+adminvoice - Custom Level B (Change in admin Voice Section)
-adminvoice - //Custom Level B (Change in admin Voice Section)
Access Custom Flag O
amx_weapon - ADMIN_LEVEL_C,"<nick, #userid, authid or @team> <weapon #>")
amx_revive - ADMIN_LEVEL_C,"<nick, #userid, authid or @team>")
amx_godmode - ADMIN_LEVEL_C,"<nick, #userid or @team> [0|1|2] - 0=OFF 1=ON 2=ON + ON EACH ROUND")
amx_noclip - ADMIN_LEVEL_C,"<nick, #userid, authid or @team> [0|1|2] - 0=OFF 1=ON 2=ON + ON EACH ROUND")
amx_drug - ADMIN_LEVEL_C,"<@all, @team, nick, #userid, authid or @team>")
amx_speed - ADMIN_LEVEL_C,"<nick, #userid, authid or @team> [0|1] -- gives/takes turbo running")
amx_givemoney - ADMIN_LEVEL_C," <nick, #userid, authid or @team> <amount> - gives specified player money")
amx_takemoney - ADMIN_LEVEL_C," <nick, #userid or authid> <amount> - takes specified player money")
Access Custom Flag P
amx_glow - ADMIN_LEVEL_D, "<nick, #userid, authid, or @team/@all> <color> (or) <rrr> <ggg> <bbb> <aaa> -- lasts 1 round")
amx_glow2 - ADMIN_LEVEL_D, "<nick, #userid, authid, or @team/@all> <color> (or) <rrr> <ggg> <bbb> <aaa> -- lasts forever")
amx_glowcolors - ADMIN_LEVEL_D, "shows a list of colors for amx_glow and amx_glow2")
amx_badaim - ADMIN_LEVEL_D,"<player> <On/off or length of time: 1|0|time> <Save?: 1|0>: Turn on/off bad aim on a player.")
amx_transfer - ADMIN_LEVEL_D,"- <name> <CT/T/Spec> Transfers that player to the specified team")
amx_team - ADMIN_LEVEL_D,"- <name> <CT/T/Spec> Transfers that player to the specified team")
amx_swap - ADMIN_LEVEL_D,"- <name 1> <name 2> Swaps two players with eachother")
amx_teamswap - ADMIN_LEVEL_D,"- Swaps two teams with eachother")
amx_lock - ADMIN_LEVEL_D,"- <CT/T/Auto/Spec> - Locks selected team")
amx_unlock - ADMIN_LEVEL_D,"- <CT/T/Auto/Spec> - Unlocks selected team")
Access Custom Flag Q
amx_quit - ADMIN_LEVEL_E,"<nick, #userid, authid or @team>")
Access Basic Flag D
amx_exec - ADMIN_BAN,"<nick or @team> <command>")
amx_restart - ADMIN_BAN,"<seconds (1-20)> - restarts the server in seconds")
Access Basic Flag K
amx_pass - ADMIN_PASSWORD, "<server password> - Sets the server password")
amx_nopass - ADMIN_PASSWORD, "- Removes the server password")
Access Basic Flag L
amx_shutdown - ADMIN_RCON,"<seconds (1-20)> - shuts down the server in seconds")
Access Basic Flag Public
amx_supermenu - ADMIN_ADMIN,"- Shows the AMX Super Menu")
Admin Listen is defined in a cvar located in the amx_super.cfg file
Download link :http://forums.alliedmods.net/showthread.php?p=166806
12:19 AM | 0 Comments
Compaq CQ45 106AU
Well this post is mostly about the Compaq Presario CQ45 106AU well i own this laptop and since past few days the fan of the laptop was making loads of noise and the laptop was heating like hell, the overall performance of the laptop was degrading. Finally i decided to take a look into the laptop i found that the bearing inside the laptop fan was the cause of the problem so to remove the fan i have to go through the whole laptop that is i had to open all the parts except the modem Bluetooth and the sound card. Well at first it looked a lot difficult but with the help of the manual it was a piece of cake.
Manual:http://h10025.www1.hp.com/ewfrf/wc/manualCategory?lc=en&dlc=en&cc=us&lang=en&product=3781150&
10:10 AM | 0 Comments
HLDS Non Steam patch.
Hey guys as i know most of you are looking for a non steam patch. Here I am posting a link from where you can download it.
3:07 PM | 0 Comments
Server Rates
Hey Guys as most of you out there are trying to get the perfect rates for your HLDS server well for me the server works really fine with the following rates
sv_minrate 0
sv_maxrate 25000
sv_minupdaterate 13
sv_maxupdaterate 13
Well I have an upload rate of 200 thus i am using lower updaterates if you guys have a better upload rate then you can try increasing the updaterates and that will also improve the aim of the server.
3:02 PM | 0 Comments
Your server is out of date. Please update and restart
This is one of the common error most of the non steam users are getting now day’s as one of the master server of steam is down and those most server admin’s get this error even after updating there server, but let me tell you guys this error wont affect your server as if you are adding other master server by using setmaster command then the players using those master server to get a list of online server will be able to see your server so don't worry just ignore the error and click on cancel and your server will still be listed on the net. Well here is the ip address of the servers which i am using just add these lines to your server.cfg
setmaster add 69.28.151.162
setmaster add 72.165.61.189
setmaster add 207.173.177.11
setmaster add 68.142.72.250
setmaster add hlmaster.jolt.co.uk
setmaster add 65.73.232.251:27040
setmaster add 65.73.232.253:27040
setmaster add 207.173.177.12:27010
setmaster add 207.173.177.11:27010
2:56 PM | 1 Comments