Eduardo170
Well-Known Member
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