24.06.2014, 06:30
Well, nice try. I've tested it (video uploading). Results :
1) No false detections
2) Aimbot is NOT DETECTED at all.
Well, I did this in your script:
See that ClientMessageToAll?
(I'm not an aimbotter, I only used that aimbot to test this filterscript)
Keep working on it.
1) No false detections
2) Aimbot is NOT DETECTED at all.
Well, I did this in your script:
pawn Код:
stock CheckForAimbot(playerid, Float:X, Float:Y, Float:Z)
{
new string[118], Float:pX, Float:pY, Float:pZ;
GetPlayerPos(playerid, pX, pY, pZ);
if(HasHit[playerid] && TimesShot[playerid] >= 1)
{
if(!DetectedForAimbot{playerid})
{
foreach(Player, i)
{
if(GetPlayerState(i) != PLAYER_STATE_SPECTATING && playerid != i)
{
if(!IsPlayerInRangeOfPoint(i, 4, X, Y, Z) && IsPlayerInRangeOfPoint(i, 175, pX, pY, pZ))
{
format(string, sizeof(string), "WARNING: %s(%d) is possibly using aimbot. /spec %d and /atest %d to test him.", GetName(playerid), playerid, playerid, playerid);
SendClientMessageToAll(-1, string);
DetectedForAimbot{playerid} = true;
}
}
}
}
}
}
(I'm not an aimbotter, I only used that aimbot to test this filterscript)
Keep working on it.