• 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!

Lua Openchannel help me.

Eduardo170

Well-Known Member
Joined
Jan 7, 2014
Messages
422
Solutions
3
Reaction score
67
Location
Caracas, Venezuela
Hi Comunity, this is my script , I would like someone to help me in the "onLeave " function , this script will open a channel to login , and when the channel onLeave reopen it closes.


Code:
local channels = {10, 11}

function onLogin(cid)
doPlayerOpenChannel(cid, channels)
registerCreatureEvent(uid, openchannel)
return true
end

function onLeaveChannel(cid, channel, users)
if isPlayer(cid) then
doPlayerOpenChannel(cid, channels)
return true
end
end
 
Back
Top