搜索
查看: 4846|回复: 21

AMX Match Deluxe 6.0比赛插件

[复制链接]
发表于 2005-7-31 21:32:57 | 显示全部楼层 |阅读模式 来自 中国–河南–新乡
奔驰汉化 无限天空修改 *进一步修正的demo menu菜单

注意:单机下不能和cd服务器端一起使用


/***AMX Match Deluxe README***\

  Originally coded by Shromilder
  Upgraded and converted to Amx Mod X by Infra

   Current version: 6.00

  This plugin is provided as is (no warranties).

  -=[ AMX Match Deluxe ]=-

  --  Works with AMXX 0.20 or more only! --
  --  Requires admin level "m" --


  --- Required Modules: ---
  -------------------------

                - Regex


  --- Optional Modules: ---
  -------------------------

                - Sockets


  Note: To use the HLTV ability, you need the Sockets module, which is included with Amx Mod X, as of v1.0.
  /!\ IF YOU DON'T WANT TO USE SOCKETS MODULE (OR THE HLTV CAPABILITY), YOU HAVE TO COMMENT THE LINE "//define USE_HLTV_SECTION" AND RECOMPILE THE PLUGIN (read the AMXX readme/doc). /!\


  This plug-in allows you to play matchs in MaxRound (warmup, CT, warmup2, Terrorist) or TimeLimit.

  Plugin supports:
  -----------------
      - Changing of the server hostname
      - Changing of the server password
      - Shield (re)restrictions
      - Swapping the teams
      - Overtime
      - Overtime configs
      - Match server configs
      - Default(FFA) server config
      - Screenshots
      - Demos, In-eyes and HLTV
      - A Menu

  Installation:
  --------------
        - 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 "addons/amxmodx/configs/amxmd"
        - Enable the correct modules in the modules.ini file (If you don't comment the "//define USE_HLTV_SECTION"
          line, you will need to enable Regex and Sockets. If not, the just Regex )
        - Restart hlds
        - Then you should be good to go  :)


  Multi-lingual help:
  -------------------
        /!\ IF YOUR LANGUAGE IS NOT ENGLISH, CHANGE THE LINE '//define DEFAULT_LANGUAGE "en"' AND RECOMPILE THE PLUGIN (read the AMXX readme/doc)/!\
       

  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]
                  

        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"

  To restart a match: amx_matchrestart
  To stop a match: amx_matchstop or "say /stop"
  To force the start of a match: amx_matchstart or "say /start"
  To swap teams: amx_swapteams


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

  amx_match_tmenu <type of match> [<type of match> ...]
  amx_match_cmenu <Name of config> <config file name>

  Note: Concretely, add them to the amxmd.cfg file (Most are already added to the config file, feel free to add your own)...

  When it's done, just use amx_matchmenu command and the menu will popup, allowing you to choose your match :).


  Cvars:
  -------
  amx_match_endtype:     
        Maxround:
                0 -> the match is finished after all rounds are played. (set by default)
                1 -> the 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 -> the match is finished immediately after the timelimit is up. (set by default)
                1 -> the 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) "<CFG file> CS Match In Progress". (set by default)
  
  amx_match_hltvdelay:   Only used in the HLTV section. If you commented the line to turn the hltv off, don't worry about this cvar
                                 This is the delay for the hltv server to delay the demo (30 by default).

  amx_match_overtime:    0 -> there is no overtime if there's a draw (set by default).
                         1 -> there is an overtime after a draw match.

  amx_match_overtimecfg: Only use if you set amx_match_overtime to 1
                                   0 -> there is no overtime config (set by default).
                                   1 -> there is an overtime config.
  
  amx_match_otrounds:    Only used if you've set amx_match_overtime to 1.
                         This is the number of rounds which are played during the maxround overtime (3 by default).
  
  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 this cvar if you set amx_match_password to 1.
                                  Use this cvar to set the value of password. (default value is "scrim")

  amx_match_playerneed:  Only used if you've 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_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 -> screenshot of score, including userids, is taken 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:      This cvar only works with CS 1.6.
                         0 -> you can't use the shield during the match (set by default).
                         1 -> you can use the shield during the match.

  amx_match_shield2:     This cvar only works with CS 1.6.
                         0 -> unrestricts shield after match.
                         1 -> (re)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).


  For MaxRound:
  --------------
  When a match is loaded, warmup time begins and match server config is loaded.
  Then, when one player of each team says 'ready' (depends on readytype cvar), the 1st half of the match starts.
  When the maxround limit is reached, the match goes back to warmup.
  Then, when both teams say 'ready' again, the 2nd half starts.
  When the game is finished, the plugin tells you which team has won the match and loads FFA server config file.
  The plugin also records both side demos if you want it.

  For TimeLimit:
  ---------------
  When a match is loaded, warmup time begins and match server config is loaded.
  Then, when one player of each team says 'ready' (depends on readytype cvar), the plugin starts the match
  When the timelimit is up, the match goes back into warmup.
  Then, when both teams say 'ready' again, the 2nd half starts
  When the game is finished, the plugin tells you which team has won the match and loads FFA server config file.
  The plugin also records both side demos if you want it.


  Config Files:
  --------------
  There are some special config files:
     - default.cfg is a server config file which is executed before every games.
       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 =)
     - cfglist.txt is the list of your available config files.
       It is shown when you type a wrong config file when you're trying to load a match.
       So if you don't want to remember the name of all your server config files,
       just add them into this file =)

  All config files, except 'amxmd.cfg' and 'hltv.ini', need to be in the "addons/amxmodx/configs/amxmd/leagues/" folder
  and have .cfg extension (/!\ This is case sensitive so .CFG will not work! /!\)
  
   (The 'amxmd.cfg' and 'hltv.ini' config files go in the "addons/amxmodx/configs/amxmd" folder)


  HLTV help:
  -----------
  /!\ IF YOU DON'T WANT TO USE THE SOCKETS MODULE, YOU HAVE TO COMMENT THE LINE "//define USE_HLTV_SECTION" AND RECOMPILE THE PLUGIN /!\
  
  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 <password> command in the HLTV console.
        - Then connect the HLTV to your server using "connect ip:port" in the HLTV console.
        - Set the HLTV adminpassword in the 'hltv.ini' config file.
        - Load your match on the server using amx_match or amx_match2
        - Then:
                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.



  Changelog:
  ----------

     - 6.00: (major release) - Sunday, June 24th, 2005
           fixed force-start functions. Plugin now ignores more than one (1) force-start command
          
. You can now start a match from the menu without being required to record a demo
           fixed restart function where if a timelimit match is restarted it would become a maxround match
           fixed typo in command description  ( "cl" --> "tl" )
                ---
           changed timelimit matches to have a timer and be on the same map for the whole match.
                    ---
           added functionality to amx_match_endtype so that it pertains to timelimit matches as well
           added swedish translations to plugin. Thanks Sunner

  ----------

     - 5.00: (major release) - Friday, April 29, 2005
           cleaned up code
                    ---
           removed includes for 'engine' and 'cstrike', these modules are not required anymore.
           removed a few global variables.
                    ---
           added amx_match_hltvdelay to the plugin settings menu
           added require_module function calls, so people won't get confused when they don't enable the regex or sockets modules
                    ---
           changed format of hltv.ini to be more user-friendly (in the format of: "<command> <setting>")
           changed format of the action_main_menu to match display_main_menu (easier to take care of now)
           changed the three 'plugin settings menu' functions to one function
                    ---
           fixed hltv code again to allow for disabling the Sockets module, thanks for the heads-up V!PER...
           fixed bug in main menu, during a half, where Swap teams would bring up the settings menu
           fixed and added to the readme to reflect changes

  ----------

     - 4.00: (major release)
           added multi-lingual functionality
           added hltv.ini config file, for the hltv admin password
                    ---
           changed swap teams so that if a player had vGUIs turned on it won't make them old-style
                    ---
           fixed hltv code to allow for hltv and server consoles with the same ip address, Thanks Ramm...

  ----------

     - 3.00: (major release)
           added new command: amx_matchsave, which will save your current cvar configuration to amxmd.cfg
           added menu item to main AMXX menu. (amxmodmenu)
           added support for hltv, using the sockets module. - Thanks redmist...
           added amxmd.cfg file - Thanks V!PER...
           added "Save configuration" menu option in the Plugin settings menu. (Save your current configuration to the amxmd.cfg file)
                    ---
           changed the readme to be easier to understand
           changed behavior of menu cfg file and type adders; the adder functions will not add the cfg's or types if the cfg or type is already in the menu...
           changed location of config files to be <custom dir>/amxmd/[leagues]
           changed name of menu command from 'amx_match_menu' to 'amx_matchmenu' to match the naming convention of other commands
           changed name of hltv command from 'amx_match_hltv' to 'amx_matchhltv' to match the naming convention of other commands
                    ---
           fixed bug in clantags finder functions; they actually find the clan tags now  ^_^.
           fixed bugs in voting functions, rofl: version 3  ^_^ - Thanks breaddawson...

  ----------

     - 2.01: fixed string bug in back_to_ffa(), where there was no '%s'  >_<.
             added match_restart to amx_match_menu.

  ----------

     - 2.00: (major release)
           added support for restarting the match.
           added support for show activity, if on.
           added cvars that were not previously in the menu, to the menu.
                    ---
           changed behavior of amx_match_password2 and amx_match_password for more fluid execution and easier to remember.
                    ---
           fixed version number bug in register plugin command.
           fixed bug where hostname would not be changed back to original hostname after match, if changed by match plugin.
           fixed bug where the vote, for playout, would happen even if there were 3 or 4 (total-rounds divided by 5 minus 1) or (30/5) - 1 = 5) rounds left in the match. version 2  ^_^
           fixed bug where vote to play out would happen even if end_type = 0
           fixed "un/passwording" of server after match, used same method as hostname fix to add/remove password at end of match.

  ----------

     - 1.81: fixed readme file to reflect changes that will be in AMXX 0.20.
          added amx_match_password and amx_match_password2 cvars
          added support for "passwording" the server.
     - 1.80: fixed bug where overtime config file was execed even in regular match time.
     - 1.79: added support for overtime config files.
           added amx_match_overtimecfg to turn [on|off] overtime config files.
     - 1.78: fixed typos.
     - 1.77: better code.
           fixed bug where the vote, for playout, would happen even if there were 3 or 4 rounds left in the match.
     - 1.76: added amx_match_shield2 cvar, unrestricts or (re)restricts shield after the match
     - 1.75: added compatibility with AmxModX 0.16
     - 1.74: added the ability to vote to play out the match. (Use amx_match_endtype)
     - 1.73: added amx_match_screenshot2 to take end-half screenshots even if match is stopped using amx_match_stop or "say /stop"
     - 1.72: added amx_match_hostname cvar to have the server change it's name based on who is playing.
          added "say /stop" command in addition to amx_match_stop.
     - 1.71: added the possibility to change match settings in the menu (it just change them, it doesn't save them anywhere so after a changelevel, all is lost).
          added amx_match_shield cvar to allow or not the use of the shield during the match.

----------

     - 1.70: trying to make it 1.6 compatible:
             stoprecord changed to stoprecording if using 1.6
             cancelselect used for the screenshots if using 1.6
             changed the hud msgs for 1.6 (readylist not yet done)
             score msg is a hud msg if using 1.6
     - 1.69: better code.
     - 1.68: if a player is already recording his own demo, then it's stopped to record a correct one.
          changed the score display.
          some bugs fixed & small changes.
     - 1.67: the cvar amx_match_showids has been changed to amx_match_screenshot which allow you to choose if you want to take a screenshot or not.
          added overtime support with amx_match_overtime & amx_match_otrounds cvars. To respect clantags, the team which must start the overtime as CT
          must be the team which started the match as CT (if you don't use clantags, there's no problem).
     - 1.66: changed showids. it now takes a screenshot of 'status' in the console
     - 1.65: added clantag recognition in the menu
     - 1.62: added the possibility to show score after each rounds using amx_match_showscore cvar (default is off)
     - 1.61: added the option to see wonid using amx_match_showids cvar (default is off)
     - 1.60: added the ability to use UDP module or not (so in fact, use hltv feature or not)
     - 1.54: corrected demo not stopping when the match is stoped.
          added amx_matchstart command which force the start of a match
     - 1.52: modified the menu, added HLTV help
     - 1.51: fixed HLTV record demo & some other bugs (thx to en3my for HLTV)
     - 1.50: HLTV demos \o/ recdemo will record players demos. rechltv will record HLTV demos. recboth will record HLTV and players demos.
     - 1.46: added amx_match_swaptype
     - 1.45: added admin start with say & menu (amx_match_readytype 2)
     - 1.44: some modifications. HLTV soon!
     - 1.43: removed a possible bug (warmup msg during match)
     - 1.42: corrected swapteam command: now it check if the user using it is an admin (stupid me :/)
     - 1.41: removed an horrible bug (changing map before the match) >:[
     - 1.40: added amx_match_menu which allow to load a match with a menu =]
     - 1.30: added amx_match_readytype & amx_match_playerneed cvars which allow that everyone must say ready
     - 1.21: added notready feature which allow a team or a player to remove their ready flag
     - 1.20: added amx_match_endtype cvar & fixed some bugs like recording demos with voicecom on.
     - 1.10: added amx_match2 and amx_swapteams command, added screenshots feature
     - 1.02: other bugs removed, less warmup msg flood
     - 1.01: added log commands, small bug removed
     - 1.00: first release

  To do:
  -------
  
        - Allow double maps matches:
              amx_match3 <CT's clan tag> <T's clan tag> <mrXX or tlXX> <Config filename> <second map> [recdemo|rechltv|recboth]
              amx_match4 <mrXX or tlXX> <Config filename> <second map> [recdemo|rechltv|recboth]

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注个册吧

×
发表于 2005-7-31 21:34:32 | 显示全部楼层 来自 中国–广东–肇庆–怀集县
不厚道...我来坐沙发吧... :)
回复

使用道具 举报

发表于 2005-7-31 21:34:55 | 显示全部楼层 来自 中国–江苏–苏州
我的乖,真快啊
回复

使用道具 举报

发表于 2005-7-31 21:37:41 | 显示全部楼层 来自 中国–湖北–十堰
谢谢啦!!!!!!!!
回复

使用道具 举报

发表于 2005-7-31 22:04:44 | 显示全部楼层 来自 中国–广东–深圳–南山区
辛苦辛苦...支持一下
回复

使用道具 举报

发表于 2005-7-31 22:11:39 | 显示全部楼层 来自 中国–山东–淄博
非得要回复你才甘心?
回复

使用道具 举报

发表于 2005-8-1 00:10:34 | 显示全部楼层 来自 中国–河北–秦皇岛
已经6.0拉  -_-!  5.0还没用过呢
回复

使用道具 举报

发表于 2005-8-1 11:05:27 | 显示全部楼层 来自 中国–河南–濮阳
这是好东西啊!不支持没天理
回复

使用道具 举报

发表于 2005-8-1 11:48:37 | 显示全部楼层 来自 中国–吉林–松原
支持啊,期待已久。好久没看到点通更新了。
回复

使用道具 举报

发表于 2005-8-1 13:01:29 | 显示全部楼层 来自 中国–陕西–西安
天空发帖了,支持一下,辛苦了
回复

使用道具 举报

游客
回复
您需要登录后才可以回帖 登录 | 注个册吧

快速回复 返回顶部 返回列表