Quote:
Originally Posted by greentarch
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:
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; } } } } } }
See that ClientMessageToAll?
(I'm not an aimbotter, I only used that aimbot to test this filterscript)
Keep working on it.
|
hm.. will check it out later.
About that ClientMessageToAll - Well, a message for admins would be better
EDIT;
I'm guessing that "if(!IsPlayerInRangeOfPoint(i, 4, X, Y, Z)" would be the problem..
Eh, will check it out later ( as said above ) xd