Apps Home
|
Create an App
9's app
Author:
test91320
Description
Source Code
Launch App
Current Users
Created by:
Test91320
var nSeconds = 120 ; function BroadcastStart( user ) { cb.setTimeout( Timeout, 5000 ) ; } // BroadcastStart() function Timeout( args ) { cb.setTimeout( Timeout, 5000 ) ; if( nSeconds > 0 ) { nSeconds -= 5 ; cb.chatNotice( nSeconds + ' seconds left before timeout' ) ; cb.chatNotice( 'tip to add 5 seconds per token' ) ; if( 0 == nSeconds ) { cb.limitCam_start( 'tip to add 5 seconds per token' ) ; } else if( 30 > nSeconds || 0 == ( nSeconds % 60 ) ) { cb.chatNotice( nSeconds + ' seconds left before timeout' ) ; cb.chatNotice( 'tip to add 5 seconds per token' ) ; } } } // Timeout() function Tip( pTip ) { cb.chatNotice( 'thanks for the tip, ' + pTip.from_user ) ; nSeconds += ( 5 * pTip.amount ) ; cb.limitCam_stop() ; } // Tip() cb.onBroadcastStart( BroadcastStart ) ; cb.onTip( Tip ) ; Timeout() ;
© Copyright Chaturbate 2011- 2024. All Rights Reserved.