MC_loggedIPs = {}
MC_kicked = {}
function onLogin(cid, lastLogin)
local playerIP = getPlayerIp(cid)
if(MC_loggedIPs[playerIP] ~= nil) then
MC_kicked[cid] = TRUE
doPlayerPopupFYI(cid, "MC Is blocked!")
doRemoveCreature(cid)
return TRUE
end
MC_loggedIPs[playerIP] = TRUE
return TRUE
end
onlogout.lua
Code:
function onLogout(cid)
if(MC_kicked[cid] == TRUE) then
return TRUE
end
local playerIP = getPlayerIp(cid)
if(_G["MC_loggedIPs"][playerIP] ~= nil) then
_G["MC_loggedIPs"][playerIP] = nil
end
return TRUE
end
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.