47 lines
1.2 KiB
SourcePawn
47 lines
1.2 KiB
SourcePawn
#pragma semicolon 1
|
|
|
|
#define PLUGIN_AUTHOR "null138"
|
|
#define PLUGIN_VERSION "3.00"
|
|
|
|
#include <sourcemod>
|
|
#include <sdktools>
|
|
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");
|
|
}
|
|
}
|
|
}
|
|
}
|