This gives an error. I want the macro to kick automatically as soon as it is pressed, but it doesn't work. Can you help me?
codes;
function handleOnPlayerACInfo( detectedACList, d3d9Size, d3d9MD5, d3d9SHA256 )
for _,acCode in ipairs( detectedACList ) do
if acCode == 31 or acCode == 32 or acCode == 1 or acCode == 4 or acCode == 5 or acCode == 6 or acCode == 7 or acCode == 11 or acCode == 17 or acCode == 21 then
kickPlayer( source, "Macro não é permitido no servidor." )
end
end
end
local glitches = {"quickreload","fastmove","crouchbug","highcloserangedamage","hitanim","baddrivebyhitbox"}
function enableGlitches ()
for _,glitch in ipairs(glitches) do)
end
end
addEventHandler ( "onResourceStart", getResourceRootElement ( ),enableGlitches)
function source ( source, command )
local reload = aclReload() -- Reload the ACL
if ( reload ) then -- Check it was reloaded successfully
else -- If not, output it (line below)
outputChatBox ( "An unknown error occured. Please check the ACL file exists.", source, 255, 0, 0 )
end
else -- If they're not an admin, output it (below)
outputChatBox ( "You must be an admin to use this command!", source, 255, 0, 0 )
end
end
addCommandHandler ( "reload", source )