MUTATOR_CALLHOOK(ClientConnect, this);
+ if (player_count == 1)
+ localcmd("\nsv_hook_firstjoin\n");
+
if (IS_REAL_CLIENT(this) && !IS_PLAYER(this) && !autocvar_g_campaign)
CS(this).motd_actived_time = -1; // the welcome message is shown by the client
}
player_powerups_remove_all(this); // stop powerup sound
ONREMOVE(this);
+
+ if (player_count == 0)
+ localcmd("\nsv_hook_lastleave\n");
}
void ChatBubbleThink(entity this)
}
void Join(entity this)
{
+ if (autocvar_g_campaign && !campaign_bots_may_start && !game_stopped && time >= game_starttime)
+ ReadyRestart(true);
+
TRANSMUTE(Player, this);
if(!this.team_selected)
|| (!(autocvar_sv_spectate || autocvar_g_campaign || (Player_GetForcedTeamIndex(this) == TEAM_FORCE_SPECTATOR))
&& (!teamplay || autocvar_g_balance_teams)))
{
- campaign_bots_may_start = true;
if(joinAllowed(this))
Join(this);
return;