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:
Handle g_hTimerResetMap;
public void OnClientDisconnect_Post(int client)
{
for( int i = 1; i <= MaxClients; i++ )
{
if( IsClientConnected(i) && !IsFakeClient(i) )
{
return;
}
}
delete g_hTimerResetMap;
g_hTimerResetMap = CreateTimer(1.0, TimerReset);
}
Action TimerReset(Handle timer)
{
g_hTimerResetMap = null;
for( int i = 1; i <= MaxClients; i++ )
{
if( IsClientConnected(i) && !IsFakeClient(i) )
{
return Plugin_Continue;
}
}
ServerCommand("sv_steamgroup_exclusive 1");
return Plugin_Continue;
}
__________________