X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fserver%2Fcommand%2Fcmd.qc;h=898e7db18faf59a78afe5988320a8a21baa02ccb;hp=7d67c4f30d621c751f0cb5ed9c627451f9a71a77;hb=a6a3b0cebd6928e3678ee4e97de4093f1b61c58b;hpb=90e5a408a7c967270916b7054ea6bef83f8ab2b3 diff --git a/qcsrc/server/command/cmd.qc b/qcsrc/server/command/cmd.qc index 7d67c4f30d..898e7db18f 100644 --- a/qcsrc/server/command/cmd.qc +++ b/qcsrc/server/command/cmd.qc @@ -150,7 +150,7 @@ void ClientCommand_join(float request) { if(IS_CLIENT(self)) { - if(!IS_PLAYER(self) && !lockteams) + if(!IS_PLAYER(self) && !lockteams && !gameover) { if(self.caplayer) return; @@ -468,7 +468,7 @@ void ClientCommand_selectteam(float request, float argc) GetTeamCounts(self); if(!TeamSmallerEqThanTeam(Team_TeamToNumber(selection), Team_TeamToNumber(self.team), self)) { - sprint(self, "Cannot change to a larger/better/shinier team\n"); + Send_Notification(NOTIF_ONE, self, MSG_INFO, INFO_TEAMCHANGE_LARGERTEAM); return; } }