[CS:GO] Easy Lan Server Manager v1.9 Updated

Post Reply
in_so@pta
Administrator
Posts: 928
Joined: Mon Jul 06, 2009 7:38 am
Jucator SA:MP ?: Da
Nick:: in_so@pta
Jucator CS ?: Da
Contact:

[CS:GO] Easy Lan Server Manager v1.9 Updated

Post by in_so@pta » Tue Jul 23, 2019 4:47 pm

This plugin is designed to be a no-fuss, on-the-fly manager for admins running small lan (or online) tournaments for csgo. This plugin was inspired by experiences at small lans where the plugins they were using were too bloated for the small-scale usage. The only setup prior to running my plugin is optional team configuration. It goes without saying that this plugin works for online matches as well. make lan easier for admins


The easiest way to start a new match is "easylan_newmatch <ct team> <t team> <optional tag 1> <optional tag 2>." The optional tags aren't required and have no order. You can also do each part manually. Entering "ct_team <ct team>", "t_team <t team>", and "easylan_forcestart knife" as 3 lines in the server console accomplishes the same thing as "easylan_newmatch <ct team> <t team> knife forcestart" as a single server command.
You can quickly make sure every team is on the correct side using server commands "t_team <teamname>" and "ct_team <teamname>." To use this feature, create configuration text files of each team in the folder /addons/sourcemod/configs/easylan/teams/<teamname>.txt. The format of <teamname>.txt should have one steam32id (STEAM:0:0_...) per line. There is an example.txt in the folder.
Use "easylan_forcestart" to force start the game. "easylan_notlive" releases the plugin from the game. "easylan_forcestart knife" force starts a new game with a knife round as well with !stay and !switch.
Players can use "!stop" during a game if they have a technical issue, and the game will automatically restore the round if there was no player contact. This feature can be disabled with "easylan_emergencystop_enabled 0." Players should use !pause for a regular tactical pause.
The chat commands "!playon" and "!unpause" unpause and resumes the game.
The game will be paused automatically on player disconnect when the game is live, and the plugin will attempt to automatically restore the round if there was no player contact before the player disconnected. This can be disabled with easylan_automaticstop_enabled set to 0.
The plugin locks the teams when the game is live, and puts any reconnected player back on the right team and tries to restore the players inventory.
The plugin doesn't interfere with gotv or spectators.
Prints the score on each round like most plugins of this type.
If you encounter an issue as an admin or need to match medic the last round, you can try "easylan_reinitialize" to fix the problem.

CVARS:

PHP Code:

Code: Select all

// ConVars for plugin "easylan.smx"
// Enables easy lan manager.
// -
// Default: "1"
easylan_enabled "1"

// Enables an emergency !stop command before any damage is made in the round.
// -
// Default: "1"
easylan_emergencystop_enabled "1"

// Enables an emergency automatic stop before any damage is made in the round.
// -
// Default: "1"
easylan_automaticstop_enabled "1"

// Change this convar to put the competition name in the score logger
// -
// Default: "Tournament Name"
easylan_tournament_name "Tournament Name"
Commands:

PHP Code:

Code: Select all

// Configures a new match and starts a warmup session.
// Server command only. Optional tags are "knife" and "forcestart".
// forcestart skips the warmup period, knife adds a knife round
// 
easylan_newmatch <ct team> <t team> <optional tag 1> <optional tag 2>

// Force starts a match that is in warmup. If there isn't a match to start, it will force start a new match anyway. Executes live.cfg. Locks teams.
// Server command only. Optional argument tag "knife" adds a kniferound to the game.
// 
easylan_forcestart

// Lists the teams that are present in the proper config folder.
// Server command only.
// 
easylan_listteams

// Looks for <teamname>.txt and puts those clients on the ct team. Cannot be used when a game is live.
// Server command only.
// 
ct_team <teamname>

// Looks for <teamname>.txt and puts those clients on the t team. Cannot be used when a game is live.
// Server command only.
// 
t_team <teamname>

// Releases the game from the plugin. Clients won't notice anything.
// Server command only.
// 
easylan_notlive

// Attaches the game back to the plugin and restores last backup round.
// Server command only.
// 
easylan_reinitialize

// !stop pauses the game, and attempts to restore the round if there hasn't been any player contact.
// Client command
// 
sm_stop

// !playon resumes the game
// Client command
// 
sm_playon

// !switch swaps the teams on kniferound win
// Client command
// 
sm_switch

// !stay skeeps the teams on kniferound win
// Client command
// 
sm_stay  
Install: Download the zip folder, unpack it, and merge the "csgo" folder.



Known Problems:

To Do:
- Translation support
- Team menu in game (!setup)
- Ability to construct new teams using team menu

Changes in 1.9:
-!switch, !stay, !ready, !notready commands will ensure player is on the team's txt config.
-Players on join will be moved to the proper team.
Attached Files
File Type: sp Get Plugin or Get Source easylan.sp
File Type: zip easylan-master1.9.zip
Source AlliedModders

Post Reply

Return to “Admin Commands”