Jump to content

anti spam hack atm


Best-Killer

Recommended Posts

int, int, int = getTimerDetails(timer theTimer)

The function getTimerDetails returns 3 integers, first one is time left in milliseconds. Also the element data "atmhacked" will always be true as it's never set to false, thus the bugged code on line 16 will never be executed. A better way of adding anti spam prevention would be to define a timer with an empty function:

cooldown[client] = setTimer(function() end, 1000*30, 1)

and then check if the timer object exist:

if not cooldown[client] or not isTimer(cooldown[client]) then return end

Last but not least since you trigger the server side function from client use the variable client instead of source as source isn't reliable and could pass the wrong player.

Link to comment

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...