Best-Killer Posted November 4, 2016 Share Posted November 4, 2016 Clinet <stolen code removed> Server <stolen code removed> 0 errors and i can hack atm everytime Link to comment
Gravestone Posted November 5, 2016 Share Posted November 5, 2016 7 hours ago, Best-Killer said: getTime= getTimerDetails(time) getTime is an MTA function, you can't use it as a variable. Link to comment
Mr_Moose Posted November 5, 2016 Share Posted November 5, 2016 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now