本帖仅用于分享AntiRollAA插件源码,不提供任何帮助,来源未知,仅供分享,请勿引战,确保无毒,编译即可使用。
#include <sourcemod>
#include <sdktools>
#define PLUGIN_NAME "kill roll aa"
#define PLUGIN_VERSION "1.1.0"
public Plugin myinfo =
{
name = "kill roll aa",
author = "nmsl",
description = "none",
version = "1.1.0",
url = "",
}
public void OnPluginStart()
{
CreateTimer(3.0, CheckUntrusted, _, TIMER_REPEAT);
}
public Action:HalfTime() {
}
public Action:RoundStart(Handle:event, const String:name[], bool:dontBroadcast)
{
}
public Action CheckUntrusted(Handle timer)
{
for(int i = 1; i <= MaxClients; i++)
{
if(IsValidEntity(i) && HasEntProp(i, Prop_Send, "m_vecOrigin") && IsClientConnected(i) && IsClientInGame(i) && IsPlayerAlive(i) && !IsFakeClient(i))
{
char clientname[32];
float pos[3];
float view_pos[3];
GetClientName(i, clientname, 32);
GetEntPropVector(i, Prop_Send, "m_vecOrigin", pos);
GetClientEyeAngles(i, view_pos);
if (view_pos[2] > 3 || view_pos[2] < -3)
{
PrintToChatAll("\x01[\x02HVH\x01] \x09%s \x02别使用角度哦\x01(X: %f, Y: %f, Z: %f)", clientname, view_pos[0], view_pos[1], view_pos[2]);
ForcePlayerSuicide(i);
}
}
}
}