From 5e2eb7d67ae933b7566f1944d0bb7744da03d586 Mon Sep 17 00:00:00 2001 From: aura Date: Tue, 17 Feb 2026 23:42:09 +0100 Subject: move source stuff to its own folder --- sourcemod/scripting/gokz-anticheat/commands.sp | 76 -------------------------- 1 file changed, 76 deletions(-) delete mode 100644 sourcemod/scripting/gokz-anticheat/commands.sp (limited to 'sourcemod/scripting/gokz-anticheat/commands.sp') 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 -- cgit v1.2.3