From c4417e4ef280914e2cb546bbf3fbde02d6eb7d28 Mon Sep 17 00:00:00 2001 From: LegendaryGuard Date: Sun, 11 Apr 2021 19:30:19 +0200 Subject: [PATCH] Enhancing setflag command (helping z411 to improve stuff) --- qcsrc/server/command/sv_cmd.qc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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; } } -- 2.39.2