• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Simple Script [summon]

Not tested, try this:
LUA:
function onLogout(cid)
local config = {
	text = "Text with cancel massage."
	summons = getCreatureSummons(cid)
	}
if(table.maxn(config.summons) > 0) then
	doPlayerSendCancel(cid, config.text)
	return false
end
	return true
end
 
Last edited:
LUA:
function onLogout(cid)
if #getCreatureSummons(cid) >= 1 then
doPlayerSendCancel(cid, "You cannot logout for aslong as you have a summon.")
end
return TRUE
end
 
Code:
function onLogout(cid)
if #getCreatureSummons(cid) >= 1 then
doPlayerSendCancel(cid, "You cannot logout for aslong as you have a summon.")
return false
end
return true
end


This Working Thanks, i add this
HTML:
return false
 
Back
Top