Apps Home
|
Create an App
Anonymous User Block
Author:
aladin1616
Description
Source Code
Launch App
Current Users
Created by:
Aladin1616
cb.onEnter(function(user) { if (!cbjs.arrayContains(cb.limitCam_allUsersWithAccess(), user['user'])) { cb.limitCam_addUsers([user['user']]); cb.chatNotice("Hello, " +user['user']+ ". As a registered user you can view " +cb.room_slug+"'s cam.", user['user'], '#fcb2bf', '#000000', 'bold'); } if (cbjs.arrayContains(cb.limitCam_allUsersWithAccess(), user['user'])) { cb.chatNotice("Welcome back, " +user['user']+ ". As a registered user you can view " +cb.room_slug+"'s cam.", user['user'], '#fcb2bf', '#000000', 'bold'); } }); cb.onMessage(function(msg) { if (!cbjs.arrayContains(cb.limitCam_allUsersWithAccess(), msg['user'])) { cb.limitCam_addUsers([msg['user']]); cb.chatNotice("Hello, " +msg['user']+ ". As a registered user you can view " +cb.room_slug+"'s cam.", msg['user'], '#fcb2bf', '#000000', 'bold'); } return msg; }); function init() { cb.limitCam_start("Now blocking anonymous viewers. If you are a registered user please type a message in the chat!"); cb.chatNotice("Now blocking anonymous viewers!", '', '#fcb2bf', '#000000', 'bold'); cb.chatNotice("If you are signed in and can't see " +cb.room_slug+"'s cam, type in the chat.", '', '#fcb2bf', '#000000', 'bold'); } init();
© Copyright Freesexcam 2011- 2024. All Rights Reserved.