#include "banning.qh"
-#include <server/defs.qh>
-#include <server/miscfunctions.qh>
-#include <common/state.qh>
#include <common/command/_mod.qh>
-#include "banning.qh"
-
-#include "common.qh"
-
-#include "../player.qh"
-#include "../ipban.qh"
-
+#include <common/state.qh>
+#include <common/stats.qh>
#include <common/util.qh>
+#include <common/weapons/_all.qh>
+#include <server/command/banning.qh>
+#include <server/command/common.qh>
+#include <server/ipban.qh>
+#include <server/player.qh>
// =====================================================
// Banning and kicking command code, written by Samual
}
default:
- LOG_INFO("Incorrect parameters for ^2ban^7");
+ LOG_INFOF("Incorrect parameters for ^2%s^7", argv(0));
case CMD_REQUEST_USAGE:
{
- LOG_HELP("Usage:^3 sv_cmd ban address [bantime] [reason]");
- LOG_HELP(" 'address' is the IP address or range of the player to ban,");
- LOG_HELP(" 'bantime' is the amount of time that the ban is active (default if not provided),");
- LOG_HELP(" and 'reason' is the string to label the ban with as reason for banning.");
+ LOG_HELP("Usage:^3 sv_cmd ban <address> [<bantime>] [<reason>]");
+ LOG_HELP(" <address> is the IP address or range of the player to ban,");
+ LOG_HELP(" <bantime> is the amount of time that the ban is active (default if not provided),");
+ LOG_HELP(" and <reason> is the string to label the ban with as reason for banning.");
LOG_HELP("See also: ^2banlist, kickban, unban^7");
return;
}
}
default:
- LOG_INFO("Incorrect parameters for ^2kickban^7");
+ LOG_INFOF("Incorrect parameters for ^2%s^7", argv(0));
case CMD_REQUEST_USAGE:
{
- LOG_HELP("Usage:^3 sv_cmd kickban client [bantime] [masksize] [reason]");
- LOG_HELP(" 'client' is the entity number or name of the player to ban,");
- LOG_HELP(" 'bantime' is the amount of time that the ban is active (default if not provided),");
- LOG_HELP(" 'masksize' is the range of the IP address (1-thru-4, default if not provided),");
- LOG_HELP(" and 'reason' is the string to label the ban with as reason for banning.");
+ LOG_HELP("Usage:^3 sv_cmd kickban <client> [<bantime>] [<masksize>] [<reason>]");
+ LOG_HELP(" <client> is the entity number or name of the player to ban,");
+ LOG_HELP(" <bantime> is the amount of time that the ban is active (default if not provided),");
+ LOG_HELP(" <masksize> is the range of the IP address (1-thru-4, default if not provided),");
+ LOG_HELP(" and <reason> is the string to label the ban with as reason for banning.");
LOG_HELP("See also: ^2ban, banlist, unban^7");
return;
}
}
default:
- LOG_INFO("Incorrect parameters for ^2mute^7");
+ LOG_INFOF("Incorrect parameters for ^2%s^7", argv(0));
case CMD_REQUEST_USAGE:
{
- LOG_HELP("Usage:^3 sv_cmd mute client");
- LOG_HELP(" 'client' is the entity number or name of the player to mute.");
+ LOG_HELP("Usage:^3 sv_cmd mute <client>");
+ LOG_HELP(" <client> is the entity number or name of the player to mute.");
LOG_HELP("See also: ^2unmute^7");
return;
}
default:
case CMD_REQUEST_USAGE:
{
- LOG_HELP("Usage:^3 sv_cmd unban banid");
- LOG_HELP(" Where 'banid' is the ID of the ban of which to remove.");
+ LOG_HELP("Usage:^3 sv_cmd unban <banid>");
+ LOG_HELP(" Where <banid> is the ID of the ban of which to remove.");
LOG_HELP("See also: ^2ban, banlist, kickban^7");
return;
}
}
default:
- LOG_INFO("Incorrect parameters for ^2mute^7");
+ LOG_INFOF("Incorrect parameters for ^2%s^7", argv(0));
case CMD_REQUEST_USAGE:
{
- LOG_HELP("Usage:^3 sv_cmd unmute client");
- LOG_HELP(" 'client' is the entity number or name of the player to unmute.");
+ LOG_HELP("Usage:^3 sv_cmd unmute <client>");
+ LOG_HELP(" <client> is the entity number or name of the player to unmute.");
LOG_HELP("See also: ^2mute^7");
return;
}