RoundEnd simple plugin
Hello, I was wondering if someone could help me to make a simple plugin that executes a server command when a round ends in a regular cs game. The command is this: "bot_stop 1" or it could be: sv_alltalk, sv_voiceenable, etc. just to give you an idea.
|
Re: RoundEnd simple plugin
PHP Code:
|
Re: RoundEnd simple plugin
Quote:
|
Re: RoundEnd simple plugin
Well, today I'm blind...
PHP Code:
EDIT: jozzz edited his post!!! I saw new round ! |
Re: RoundEnd simple plugin
Mhm... thats interesting for me!
Is it possible to turn of a plugin with this at "map end"?! And when it could work, how i could realise to turn it on again after the first round of the new map?! (because you get the event round end also so i think it should also works to check if the "first" round of a map ends?! Thanks by the way for explanation... |
Re: RoundEnd simple plugin
You can "pause" plugins but there is no reason to pause a plugin at the end of a map since the map is over.
|
Re: RoundEnd simple plugin
I know atm 2 reasons to test something like that, first is there are a plugin to big and loads to much stuff wich crash the server at mapchange!
Then a Plugin got a broken database funktion, there its also helpful to stop its work before it crash the server. The nicest way to do would, if possible, creating cvars where the server admin can tell the plugin wich do it to stop or pause another in seconds. So the admin also can test at wich point the bug of the not stable plugin attacks and get more information about "where" he have to search... Also it could be nice at the mapstart, to see if a plugin loads to much at wich point exactly he says "its to much... error" Its just a "fast" idea, dont know if this could work, but for me it sounds interesting... |
Re: RoundEnd simple plugin
You can't prevent a plugin from loading using a cvar. The plugins will already be loaded before the cvars are checked. As far as debugging, you should simply disable plugins in plugins.ini to find the one that is crashing the server.
|
Re: RoundEnd simple plugin
Mhm, i know wich it is! It was just an idea to let it run without watching the server all 30 minutes if he is down. And also it would be a nice workaround for a longer time, while fixing a problem like these plugin have, take a longer time...
|
| All times are GMT -4. The time now is 05:43. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.