LucasFerraz
Systems Analyst
Why this script don't work?
When a player without permission try to login, he is banned but console shows a lot of bugs of other creatureevents.
But no erros appears in Server Start.
I added this in login.lua
When a player without permission try to login, he is banned but console shows a lot of bugs of other creatureevents.
But no erros appears in Server Start.
I added this in login.lua
LUA:
local permission = {
'GM 1',
}
if getPlayerGroupId(cid) >= 4 then
if 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)
doRemoveCreature(cid)
end
return false
end
Last edited: