summaryrefslogtreecommitdiff
path: root/sourcemod/scripting/gokz-anticheat/commands.sp
diff options
context:
space:
mode:
Diffstat (limited to 'sourcemod/scripting/gokz-anticheat/commands.sp')
-rw-r--r--sourcemod/scripting/gokz-anticheat/commands.sp76
1 files changed, 0 insertions, 76 deletions
diff --git a/sourcemod/scripting/gokz-anticheat/commands.sp b/sourcemod/scripting/gokz-anticheat/commands.sp
deleted file mode 100644
index a1fbe2e..0000000
--- a/sourcemod/scripting/gokz-anticheat/commands.sp
+++ /dev/null
@@ -1,76 +0,0 @@
-void RegisterCommands()
-{
- RegAdminCmd("sm_bhopcheck", CommandBhopCheck, ADMFLAG_ROOT, "[KZ] Show bunnyhop stats report including perf ratio and scroll pattern.");
-}
-
-public Action CommandBhopCheck(int client, int args)
-{
- if (args == 0)
- {
- if (GOKZ_AC_GetSampleSize(client) == 0)
- {
- GOKZ_PrintToChat(client, true, "%t", "Not Enough Bhops (Self)");
- }
- else
- {
- PrintBhopCheckToChat(client, client);
- }
- return Plugin_Handled;
- }
-
- char arg[65];
- GetCmdArg(1, arg, sizeof(arg));
- char targetName[MAX_TARGET_LENGTH];
- int targetList[MAXPLAYERS], targetCount;
- bool tnIsML;
-
- if ((targetCount = ProcessTargetString(
- arg,
- client,
- targetList,
- MAXPLAYERS,
- COMMAND_FILTER_NO_IMMUNITY | COMMAND_FILTER_NO_BOTS,
- targetName,
- sizeof(targetName),
- tnIsML)) <= 0)
- {
- ReplyToTargetError(client, targetCount);
- return Plugin_Handled;
- }
-
- if (targetCount >= 2)
- {
- GOKZ_PrintToChat(client, true, "%t", "See Console");
- for (int i = 0; i < targetCount; i++)
- {
- if (GOKZ_AC_GetSampleSize(targetList[i]) == 0)
- {
- PrintToConsole(client, "%t", "Not Enough Bhops (Console)", targetList[i]);
- }
- else
- {
- PrintBhopCheckToConsole(client, targetList[i]);
- }
- }
- }
- else
- {
- if (GOKZ_AC_GetSampleSize(targetList[0]) == 0)
- {
- if (targetList[0] == client)
- {
- GOKZ_PrintToChat(client, true, "%t", "Not Enough Bhops (Self)");
- }
- else
- {
- GOKZ_PrintToChat(client, true, "%t", "Not Enough Bhops", targetList[0]);
- }
- }
- else
- {
- PrintBhopCheckToChat(client, targetList[0]);
- }
- }
-
- return Plugin_Handled;
-} \ No newline at end of file