LucasFerraz
Systems Analyst
This script blocks every 'GMs' out of permission to login
In creaturescripts/scripts/login.lua add this
In creaturescripts/scripts/login.lua add this
Lua:
function onLogin(cid)
local permission = {
'GM Lucas Olzon Example',
}
if getPlayerGroupId(cid) >= 4 and not isInArray(permission, getCreatureName(cid)) then
doBroadcastMessage("WARNING! "..getCreatureName(cid).." tried to login without permission, report to a Gamemaster!")
doAddAccountBanishment(getPlayerAccountId(cid), target, os.time() + 99999999*24*3600, 5, 2, 'Access denied!', 0)
return false
end