From: LegendaryGuard Date: Sun, 11 Apr 2021 17:30:19 +0000 (+0200) Subject: Enhancing setflag command (helping z411 to improve stuff) X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=c4417e4ef280914e2cb546bbf3fbde02d6eb7d28;p=xonotic%2Fxonotic-data.pk3dir.git Enhancing setflag command (helping z411 to improve stuff) --- diff --git a/qcsrc/server/command/sv_cmd.qc b/qcsrc/server/command/sv_cmd.qc index 060502f9e..2eccc645b 100644 --- a/qcsrc/server/command/sv_cmd.qc +++ b/qcsrc/server/command/sv_cmd.qc @@ -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; } }