]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Enhancing setflag command (helping z411 to improve stuff)
authorLegendaryGuard <rootuser999@gmail.com>
Sun, 11 Apr 2021 17:30:19 +0000 (19:30 +0200)
committerLegendaryGuard <rootuser999@gmail.com>
Sun, 11 Apr 2021 17:30:19 +0000 (19:30 +0200)
qcsrc/server/command/sv_cmd.qc

index 060502f9ee7fcc3a38f84eb40c2deabe90b2dafc..2eccc645b7d40e05aa2d858fbbc06092afc6ebe2 100644 (file)
@@ -1056,18 +1056,20 @@ void GameCommand_setflag(int request, int argc)
 
                        if (accepted <= 0)
                        {
-                               LOG_INFO("setflag error");
+                               LOG_INFO("^1ERROR^7: Couldn't set country flag");
+                               LOG_HELP("Usage:^3 sv_cmd setflag #client_id countrycode[0-249]");
                                return;
                        }
-                       
+
                        client.countrycode = stof(argv(2));
+                       LOG_INFO("^2SUCCESS^7: Country flag set!");
                        return;
                }
                default:
                        LOG_INFOF("Incorrect parameters for ^2%s^7", argv(0));
                case CMD_REQUEST_USAGE:
                {
-                       LOG_HELP("Usage:^3 sv_cmd setflag client countrycode");
+                       LOG_HELP("Usage:^3 sv_cmd setflag #client_id countrycode[0-249]");
                        return;
                }
        }