DexoTronic Posted April 4, 2010 Posted April 4, 2010 addEventHandler( "onClientResourceStart", getRootElement( ), function ( Anticheat ) Antiairbreaketimer = setTimer( Antiairbreake, 5000, 0, "Airbreakecheat") function Antiairbreake (text) local x,y,z = getElementPosition( getLocalPlayer() ) setElementPosition ( getLocalPlayer(), x, y + 1, z) local nx,ny,nz = getElementPosition( getLocalPlayer() ) if ny == y then outputChatBox(text) else setElementPosition ( getLocalPlayer(), x, y - 1, z) end end end ); I get an Bad Arguement at the 3rd line help me please its a client script
karlis Posted April 4, 2010 Posted April 4, 2010 lol this is supoerannoying way to detect airbrake, and witch would make report for nothing
DexoTronic Posted April 4, 2010 Author Posted April 4, 2010 u can help me or not? i will test it before i will use that on my server...
Antibird Posted April 4, 2010 Posted April 4, 2010 At line 3 you point at the function which you later declare at line 4, but this should be vice-versa. Put a timer after function, not before it, e.g after line 13. Either move the function out of the onClientResourceStart() body.
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