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-global/ban_player.sp | 42 --------------------------- 1 file changed, 42 deletions(-) delete mode 100644 sourcemod/scripting/gokz-global/ban_player.sp (limited to 'sourcemod/scripting/gokz-global/ban_player.sp') diff --git a/sourcemod/scripting/gokz-global/ban_player.sp b/sourcemod/scripting/gokz-global/ban_player.sp deleted file mode 100644 index 835d9e5..0000000 --- a/sourcemod/scripting/gokz-global/ban_player.sp +++ /dev/null @@ -1,42 +0,0 @@ -/* - Globally ban players when they are suspected by gokz-anticheat. -*/ - - - -// =====[ PUBLIC ]===== - -void GlobalBanPlayer(int client, ACReason reason, const char[] notes, const char[] stats) -{ - char playerName[MAX_NAME_LENGTH], steamid[32], ip[32]; - - GetClientName(client, playerName, sizeof(playerName)); - GetClientAuthId(client, AuthId_Steam2, steamid, sizeof(steamid)); - GetClientIP(client, ip, sizeof(ip)); - - DataPack dp = new DataPack(); - dp.WriteString(playerName); - dp.WriteString(steamid); - - switch (reason) - { - case ACReason_BhopHack:GlobalAPI_CreateBan(BanPlayerCallback, dp, steamid, "bhop_hack", stats, notes, ip); - case ACReason_BhopMacro:GlobalAPI_CreateBan(BanPlayerCallback, dp, steamid, "bhop_macro", stats, notes, ip); - } -} - -public int BanPlayerCallback(JSON_Object response, GlobalAPIRequestData request, DataPack dp) -{ - char playerName[MAX_NAME_LENGTH], steamid[32]; - - dp.Reset(); - dp.ReadString(playerName, sizeof(playerName)); - dp.ReadString(steamid, sizeof(steamid)); - delete dp; - - if (request.Failure) - { - LogError("Failed to globally ban %s (%s).", playerName, steamid); - } - return 0; -} -- cgit v1.2.3