GLOBALELITE.PL GLOBALELITE.pl 83 Napisano 17 Lipca 2017 Share Napisano 17 Lipca 2017 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 my experiences at small lans where the plugins they were using were too bloated for the small-scale usage, and the complications resulted from using those plugins made running the tournament a nightmare. The only setup prior to running my plugin is optional team configuration. 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_liveup" to start the game. "easylan_unlive" releases the plugin from the game. 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." The chat command "!playon" unpauses 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. 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. If you encounter an issue as an admin or need to match medic the last round, try "easylan_reinitialize" to fix the problem. CVARS: PHP Code: // 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" Commands: PHP Code: // Starts a match. Executes live.cfg. Locks teams.// Server command only.// easylan_liveup// 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_unlive// 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 Install: Download the zip folder, unpack it, and merge the "csgo" folder.Known Problems:- No knife rounds- No score log- No auto-recording demos Attached Files easylan-master.zip (23.2 KB) Get Plugin or Get Source (easylan.sp - 15.0 KB) Pełny artykuł: https://forums.alliedmods.net/showthread.php?t=299512&goto=newpost Odnośnik do odpowiedzi Udostępnij na innych stronach
Rekomendowane odpowiedzi