←  [RSS] Pluginy

AMXX.pl: Support AMX Mod X i SourceMod

»

[CS:GO] ChangeMode

Adminek AMXX.PL - zdjęcie Adminek AMXX.PL 10.02.2013

This is a modification of SouceMod's randomcycle plugin. It will both randomize your map cycle and allow you to switch game modes in-game, automatically selecting a new custom map cycle for each mode and randomly selecting a map from that list to change to.The casual game mode uses the original mapcycle.txt by default. You will need to create the additional following text files in your base directory:mapcycle_competetive.txtmapcycle_armsrace.txtmapcycle_demolition.txtmapcycle_deathmatch.txtYou must set up your gamemodes_server.txt to allow all game modes to use the same mapgroup, which will contain every map on your server: Code: "GameModes_Server.txt"{ "gameTypes" { "classic" { "gameModes" { "casual" { "mapgroupsMP" { "mg_allmaps" "" } } "competetive" { "mapgroupsMP" { "mg_allmaps" "" } } } } "gungame" { "gameModes" { "gungameprogressive" { "mapgroupsMP" { "mg_allmaps" "" } } "gungametrbomb" { "mapgroupsMP" { "mg_allmaps" "" } } "deathmatch" { "mapgroupsMP" { "mg_allmaps" "" } } } } } "mapgroups" { "mg_allmaps" { "name" "mg_allmaps" "maps" { "ar_baggage" "" "ar_monastery" "" "ar_shoots" "" "cs_assault" "" "cs_italy" "" "cs_office" "" "de_aztec" "" "de_bank" "" "de_dust" "" "de_dust2" "" "de_inferno" "" "de_lake" "" "de_nuke" "" "de_safehouse" "" "de_shorttrain" "" "de_stmarc" "" "de_sugarcane" "" "de_train" "" "de_vertigo" "" } } }}Then, in your srcds launch options, set the following: Code: +game_type 0 +game_mode 0 +mapgroup mg_allmaps +mapcyclefile mapcycle.txtThis is the default for casual game mode; if you change the default mode, make sure you also change the default mapcycle file.Some maps do not support classic modes (ar_ maps). These should be reserved for deathmatch and gungame cycles.I also recommend you download Show The Right Next Map, otherwise the wrong maps will be displayed to players in-game.To select modes in-game, add the following to your adminmenu_custom.txt file: Code: "Commands"{ "Game Modes" { "Casual" { "cmd" "sm_changemode_casual" "admin" "sm_kick" "execute" "server" } "Competetive" { "cmd" "sm_changemode_casual" "admin" "sm_kick" "execute" "server" } "Arms Race" { "cmd" "sm_changemode_casual" "admin" "sm_kick" "execute" "server" } "Demolition" { "cmd" "sm_changemode_casual" "admin" "sm_kick" "execute" "server" } "Deathmatch" { "cmd" "sm_changemode_casual" "admin" "sm_kick" "execute" "server" } "Random Map (Current Mode)" { "cmd" "sm_changemap" "admin" "sm_kick" "execute" "server" } }} Attached Files Dołączona grafika Get Plugin or Get Source (changemode.sp - 4.9 KB)

Wyświetl pełny artykuł
Odpowiedz