Jump to content

Making anti-aimbot script..?


=FAS=Shigawire

Recommended Posts

Posted

Yo,

ATM i am working on several anti-cheat scripts.

Now i try to script something against aimbots.

Is it posssible to define the time between right klick (start aiming) and the headshot?

I guess an aimbot only needs some miliseconds to aim at the players Head. And no player is able to aim so fast and accurat.

I saw an article about time-measuring in the wiki, but i forgot how it was called.

Or measuring the movementspeed of the mouse until it reaches the Object ( = Head )

Would it be possible to script something like that?

Hosting your MTA:SA server! http://gta-servers.net.

Posted
Yes, it would be. You could getTickCount( ) when player right-click and getTickCount( ) when a player dies. Then compare the values and see if the difference is greater then the specified amount of milliseconds.

Yes, but I know some people who click LMB as soon as they pressed RMB... =/

EDIT: Besides, if a player has 1HP, and another shoots on him, he would probably be under the limit... =/

Projects:

Slothbot | Maximap

Posted
Yes, it would be. You could getTickCount( ) when player right-click and getTickCount( ) when a player dies. Then compare the values and see if the difference is greater then the specified amount of milliseconds.

Yes, but I know some people who click LMB as soon as they pressed RMB... =/

And it's also possible to hit the head without pressing RMB. With things like these it's much harder to detect if player is cheating or just pro.

-

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...