Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- integer canPay = FALSE;
- allowPay()
- {
- canPay = TRUE;
- llSetPayPrice(10, [10, PAY_HIDE, PAY_HIDE, PAY_HIDE]);
- llSetClickAction( CLICK_ACTION_PAY );
- llSetText( "Payment Allowed", <1,1,1>, 1.0 );
- }
- disallowPay()
- {
- canPay = FALSE;
- llSetPayPrice(PAY_HIDE, [PAY_HIDE ,PAY_HIDE, PAY_HIDE, PAY_HIDE]);
- llSetClickAction( CLICK_ACTION_TOUCH );
- llSetText( "Payment NOT Allowed", <1,1,1>, 1.0 );
- }
- default
- {
- state_entry()
- {
- llRequestPermissions(llGetOwner(), PERMISSION_DEBIT);
- allowPay();
- llSetTimerEvent( 5.0 );
- }
- money( key id, integer amount )
- {
- llSay(0, "Received Money");
- }
- touch_start(integer total_number)
- {
- allowPay();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement