Execute Configs 1.0 (Updated 2020/08/05)
10 Attachment(s)
This plugin executes configs when there are either a certain amount of clients on, a certain event occurs, a certain round starts or when there are a certain amount of minutes left on the map. You can use this to disable alltalk above x clients, or to change the map when the timelimit hits, etc. The configs of course go into the cfg folder and the console variables are as follows:
sm_executeconfigs_enabled (0/1, def 1) Enable/disable executing configs. The plugin will keep counting the rounds and timeleft when it's disabled, but it will only actually execute the configs when it's enabled. sm_executeconfigs_include_bots (0/1, def. 1) Enable/disable including bots when counting number of clients. This will allow you to disable counting fake clients as normal clients. sm_executeconfigs_include_spec (0/1, def. 1) Enable/disable including spectators when counting number of clients. This will allow you to disable counting spectators as normal clients. sm_executeconfigs_reload Server command to reload the configs from executeconfigs.txt. To customize which configs get executed, put the attached executeconfigs.txt in the configs folder. It contains some examples of which I'll explain one here: Code:
"Configs" I've tested this on TF2, I'm sure it works on others too but bug reports are always welcome :) Changelog
|
Re: Execute Configs
could you add something like this?
sm_executeconfigs_include_spectators 0/1 |
Re: Execute Configs
Let me get this straight. The emptyserver.cfg goes in the /cfg folder?
To load a new or the next map what would I enter? I tried using your change2nextmap.smx plugin and got this error. CModelLoader::Map_IsValid: No such map 'maps/Pending Vote.bsp' L 02/29/2008 - 12:52:17: [change2nextmap.smx] Map Name "Pending Vote" Invalid. I like the idea of the server rotating through maps even though there are no clients. I just don't know how to invoke that map change. |
Re: Execute Configs
dann: sure, I can add that. I'm assuming that's spectators that aren't bots?
John: yes, the emptyserver.cfg goes into the cfg folder. To change to the next map just have the command sm_change2nextmap in there. It looks like you're using the mapchooser plugin which initiates a vote at the end of the map, and before that vote is finished no next map is set (and ofcourse when there are no clients on noone ever votes). I'll have a look at how you can fix that. |
Re: Execute Configs
yes actual spectators, not bots.
thanks |
Re: Execute Configs
I removed the mapchooser plugin. When I use sm_change2nextmap the console tells me unknown command. If that is any help?
|
Re: Execute Configs
Type "sm plugins list" and make sure it's loaded, if it is it should work...
Edit: oh, and it has to be ran on the server console. So through rcon if you're executing it in-game. |
Re: Execute Configs
Doesnt work on our tf2 server :
L 03/03/2008 - 11:00:26: [SM] To enable debug mode, edit plugin_settings.cfg, or type: sm plugins debug 11 on L 03/03/2008 - 11:02:54: [SM] Native "KillTimer" reported: Invalid timer handle 2380114 (error 1) L 03/03/2008 - 11:02:54: [SM] Debug mode is not enabled for "executeconfigs.smx" |
Re: Execute Configs
thx for usefull plugin!
|
Re: Execute Configs
But what is it?
Code:
L 03/05/2008 - 23:44:45: [SM] [0] Line 99, executeconfigs.sp::ExecClientsConfig() Code:
Configs |
All times are GMT -4. The time now is 07:36. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.