ice_brasil Posted July 11, 2013 Share Posted July 11, 2013 I wonder if anti-cheat will work on any hack so I do not know. therefore possess no hack I want that when a player is with 200 life he is banned. function antiCheat ( theCheater ) if getElementHealth( theCheater ) >= 200 then banPlayer ( theCheater, "Cheater" ) end end addEventHandler("onPlayerSpawn",root, function () setTimer( antiCheat, 2500, 1, source ) end ) addEventHandler("onPlayerTarget",root, function () antiCheat( source ) end ) addCommandHandler( "clean", function ( ) for k, i in ipairs ( getElementsByType( "player" ) ) do antiCheat( i ) end end ) Link to comment
iPrestege Posted July 11, 2013 Share Posted July 11, 2013 banPlayer ( theCheater,false,false,true,'Anti Cheat','Cheater' ) Make sure the resource have acl admin ban rights! 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