X-Git-Url: https://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fserver%2Fclient.qc;h=bacb82e071429c219127ce07e5cc15888d39ff57;hp=097cafda03813137afac5c0c28f57fe0c6841c8d;hb=d2b0f12cb08fe3d1e59d3c9514546c4858cf9012;hpb=6f3a2d52796c4bb7cb689188e2fe5a733ad49d7c diff --git a/qcsrc/server/client.qc b/qcsrc/server/client.qc index 097cafda03..bacb82e071 100644 --- a/qcsrc/server/client.qc +++ b/qcsrc/server/client.qc @@ -1174,6 +1174,9 @@ void ClientConnect(entity this) 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 } @@ -1242,6 +1245,9 @@ void ClientDisconnect(entity this) player_powerups_remove_all(this); // stop powerup sound ONREMOVE(this); + + if (player_count == 0) + localcmd("\nsv_hook_lastleave\n"); } void ChatBubbleThink(entity this)