how i can do this.
I need to block if someone try logout with outfit 374..
the function onLogout still work in 0.4?
XML:
<event type="logout" name="logout" event="script" value="logout.lua"/>
Lua:
function onLogout(cid)
if getCreatureOutfit(cid).lookType == 374 then
doPlayerSendDefaultCancel(cid, RETURNVALUE_YOUCANNOTLOGOUTHERE)
end
return true
end
I need to block if someone try logout with outfit 374..
the function onLogout still work in 0.4?