Jump to content

cheters problem


Recommended Posts

helo mta ihave one of the big server in maroc but i heve i big problem with cheaters i have the cheat i i well give you the cheat for fix this problem his name is gazmask please stop it l have it how i gona give you it

Link to comment
Posted (edited)
local wasReconnected = {}
local skipPlayer = {}

addEventHandler("onPlayerConnect", root, function(_, _, _, serial)
    if (wasReconnected[serial] or 0) > getTickCount() then
        skipPlayer[serial] = true
        return
    end
    skipPlayer[serial] = nil
    wasReconnected[serial] = nil
end)

addEventHandler("onPlayerResourceStart", root, function()
    if skipPlayer[getPlayerSerial(source)] then
        return
    end
    if not wasReconnected[getPlayerSerial(source)] then
        wasReconnected[getPlayerSerial(source)] = getTickCount() + 10000
        redirectPlayer(source, "127.0.0.1", 22003) -- change to your server ip
    end
end)

Btw make sure your server require latest mta client version (you can do it via acpanel).

Edited by Korea
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...