Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (typechannel === 'premium' && typeof clanrank === 'undefined' ) {
- ts3.channelCreate(`[cspacer] ${channeladmin}`, {channel_flag_permanent: 1, channel_maxclients: 0, channel_maxfamilyclients: 0, channel_flag_maxfamilyclients_inherited: 1})
- Promise.all([
- ts3.getChannelByName(`[cspacer] ${channeladmin}`),
- ts3.getClientByName(`${channeladmin}`)
- ]).then(val => {
- let easepid = val[0].getID()
- ts3.channelCreate(`${channeladmin} - 1`, {channel_flag_permanent: 1, channel_maxclients: 0, cpid: `${easepid}`, channel_maxfamilyclients: 0 })
- ts3.channelCreate(`${channeladmin} - 2`, {channel_flag_permanent: 1, channel_maxclients: 0, cpid: `${easepid}`, channel_maxfamilyclients: 0 })
- ts3.channelCreate(`${channeladmin} - 3`, {channel_flag_permanent: 1, channel_maxclients: 0, cpid: `${easepid}`, channel_maxfamilyclients: 0 })
- ts3.channelCreate(`${channeladmin} - Poczekalnia`, {channel_flag_permanent: 1, cpid: `${easepid}` })
- ts3.sendTextMessage(`${ev.invoker.cid}`, 2, `Utworzono kanaΕ dla: [B]${channeladmin}[/B] rodzaj: ${typechannel}`)
- ts3.clientMove(`${val[1].getID()}`, `${val[0].getID()}`)
- ts3.setClientChannelGroup(`${leaderchannel_id}`, `${val[0].getID()}`, `${val[1].getDBID()}`)
- ts3.clientMove(`${val[1].getID()}`, `1`)
- })
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement