diff --git a/madness_elite_ze_detector/scripting/testingjust.sp b/madness_elite_ze_detector/scripting/testingjust.sp new file mode 100644 index 00000000..0d0d182a --- /dev/null +++ b/madness_elite_ze_detector/scripting/testingjust.sp @@ -0,0 +1,46 @@ +#pragma semicolon 1 + +#define PLUGIN_AUTHOR "null138" +#define PLUGIN_VERSION "3.00" + +#include +#include +Handle g_hOnReportkickForward; + +#pragma newdecls required + +public Plugin myinfo = +{ + name = "testing ust", + author = PLUGIN_AUTHOR, + version = PLUGIN_VERSION, + url = "https://steamcommunity.com/id/null138/" +} + +public void OnPluginStart() +{ + g_hOnReportkickForward = CreateGlobalForward("KickEliteHackDetectorPost", ET_Ignore, Param_Cell); +} + + +public Action OnPlayerRunCmd(int client, int &buttons, int &impulse, float vel[3]) +{ + if(IsPlayerAlive(client) && !IsFakeClient(client)) + { + if(vel[0] == 399.999969 || vel[0] == -399.999969 || \ + vel[0] == 400.000030 || vel[0] == -400.000030 || \ + vel[0] == 0.000017 || vel[0] == -0.000017 || \ + vel[0] == 205.600189 || vel[0] == -205.600189 || \ + vel[0] == 205.600219 || -vel[0] == -205.600219 || \ + vel[1] == 205.600204 || vel[1] == -205.600204) + { + if(IsClientInGame(client)) + { + Call_StartForward(g_hOnReportkickForward); + Call_PushCell(client); + Call_Finish(); + KickClientEx(client, "get out thx"); + } + } + } +}