]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/command/cmd.qc
Try to fix vote reason string
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / command / cmd.qc
index 48886d9b9da925a3c37926dd94c7d0b943aca9c5..d363de52759811d727c8bc232bbbaf536bfd9544 100644 (file)
@@ -159,7 +159,8 @@ void ClientCommand_join(float request)
                                                
                                                self.classname = "player";
                                                PlayerScore_Clear(self);
-                                               Send_Notification(NOTIF_ANY, world, MSG_INFO, INFO_JOIN_PLAY, self.netname);
+                                               Kill_Notification(NOTIF_ONE_ONLY, self, MSG_CENTER_CPID, CPID_PREVENT_JOIN);
+                                               Send_Notification(NOTIF_ALL, world, MSG_INFO, INFO_JOIN_PLAY, self.netname);
                                                PutClientInServer();
                                        }
                                        else 
@@ -284,10 +285,10 @@ void ClientCommand_selectteam(float request, float argc)
                                                                
                                                                switch(argv(1))
                                                                {
-                                                                       case "red": selection = FL_TEAM_1; break;
-                                                                       case "blue": selection = FL_TEAM_2; break;
-                                                                       case "yellow": selection = FL_TEAM_3; break;
-                                                                       case "pink": selection = FL_TEAM_4; break;
+                                                                       case "red": selection = NUM_TEAM_1; break;
+                                                                       case "blue": selection = NUM_TEAM_2; break;
+                                                                       case "yellow": selection = NUM_TEAM_3; break;
+                                                                       case "pink": selection = NUM_TEAM_4; break;
                                                                        case "auto": selection = (-1); break;
                                                                        
                                                                        default: selection = 0; break;