sv_steamgroup_exclusive question
I'm looking for a way to reinforce sv_steamgroup_exclusive 1 whenever my server is empty.
My server.cfg normally has it set to 1, but I have it change to 0 whenever a player from the Steam group joins using first_player_spawn HookEvent. I was wondering if there was an automated way to change it back to 1 as soon as the last player disconnects if possible. I have looked into timers with the player_disconnect event while counting human players but that did not seem to work. |
Re: sv_steamgroup_exclusive question
You never mentioned the game.
|
Re: sv_steamgroup_exclusive question
Sorry, forgot to mention that it was Left 4 Dead 2.
Here is my attempt at a plugin that did not work PHP Code:
|
Re: sv_steamgroup_exclusive question
You should probably remove: GetClientTeam(client) == 2
Is your servers hibernation off? sv_hibernate_when_empty 0 or whats the value of sv_hibernate_postgame_delay? Would recommend debug printing to see if CheckPlayers ever gets to the ServerCommand part. Well instead of that try this: I recently had to swap "player_disconnect" event with "OnClientDisconnect_Post" since it appeared to not always trigger. Try this, I've modified it from Vote Mode plugins recent update that resets mode when all players disconnect: PHP Code:
|
Re: sv_steamgroup_exclusive question
Quote:
Only thing was it only seemed to have worked with sv_hibernate_when_empty is set to 0. I tried using different values for sv_hibernate_postgame_delay with sv_hibernate_when_empty at 1 but no luck. Thank you Silvers! |
All times are GMT -4. The time now is 19:32. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.