X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fserver%2Fmutators%2Fsandbox.qc;h=f9e4e633b3fad4ea067b6aae3c6e9e015b0ced15;hp=cd9b528a9e18147cdcf1b3181825f6b54314f340;hb=7fc3e6f30bda6ec2f89ee905e6e1360f24b3fe22;hpb=10eb2ab6831a2aed4d31c0d840fcfd1a1cae1c73 diff --git a/qcsrc/server/mutators/sandbox.qc b/qcsrc/server/mutators/sandbox.qc index cd9b528a9e..f9e4e633b3 100644 --- a/qcsrc/server/mutators/sandbox.qc +++ b/qcsrc/server/mutators/sandbox.qc @@ -2,10 +2,19 @@ MUTATOR_HOOKFUNCTION(sandbox_PlayerCommand) { if(MUTATOR_RETURNVALUE) // command was already handled? return 0; - if(cmd_name == "g_sandbox" && cmd_argc >= 2) + if(cmd_name == "g_sandbox") { - print(strcat("Sandbox command received. Player sending the command is ", self.netname, "\n")); - return 1; + if(cmd_argc < 2) + { + print_to(self, "Sandbox mode is active. For more information, use 'g_sandbox help'"); + return 1; + } + + if(argv(1) == "help") + { + print_to(self, "You can use the following sandbox commands:"); + return 1; + } } return 0; }