#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_INFO("Usage:^3 sv_cmd ban address [bantime] [reason]");
- LOG_INFO(" 'address' is the IP address or range of the player to ban,");
- LOG_INFO(" 'bantime' is the amount of time that the ban is active (default if not provided),");
- LOG_INFO(" and 'reason' is the string to label the ban with as reason for banning.");
- LOG_INFO("See also: ^2banlist, kickban, unban^7");
+ 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:
case CMD_REQUEST_USAGE:
{
- LOG_INFO("Usage:^3 sv_cmd banlist");
- LOG_INFO(" No arguments required.");
- LOG_INFO("See also: ^2ban, kickban, unban^7");
+ LOG_HELP("Usage:^3 sv_cmd banlist");
+ LOG_HELP(" No arguments required.");
+ LOG_HELP("See also: ^2ban, 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_INFO("Usage:^3 sv_cmd kickban client [bantime] [masksize] [reason]");
- LOG_INFO(" 'client' is the entity number or name of the player to ban,");
- LOG_INFO(" 'bantime' is the amount of time that the ban is active (default if not provided),");
- LOG_INFO(" 'masksize' is the range of the IP address (1-thru-4, default if not provided),");
- LOG_INFO(" and 'reason' is the string to label the ban with as reason for banning.");
- LOG_INFO("See also: ^2ban, banlist, unban^7");
+ 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_INFO("Usage:^3 sv_cmd mute client");
- LOG_INFO(" 'client' is the entity number or name of the player to mute.");
- LOG_INFO("See also: ^2unmute^7");
+ 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_INFO("Usage:^3 sv_cmd unban banid");
- LOG_INFO(" Where 'banid' is the ID of the ban of which to remove.");
- LOG_INFO("See also: ^2ban, banlist, kickban^7");
+ 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_INFO("Usage:^3 sv_cmd unmute client");
- LOG_INFO(" 'client' is the entity number or name of the player to unmute.");
- LOG_INFO("See also: ^2mute^7");
+ 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;
}
}
default:
case CMD_REQUEST_USAGE:
{
- print("\nUsage:^3 sv_cmd \n");
- print(" No arguments required.\n");
+ LOG_HELP("Usage:^3 sv_cmd ");
+ LOG_HELP(" No arguments required.");
return;
}
}