Advertisement
Guest User

Untitled

a guest
Jul 20th, 2017
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. integer canPay = FALSE;
  2. allowPay()
  3. {
  4.     canPay = TRUE;
  5.     llSetPayPrice(10, [10, PAY_HIDE, PAY_HIDE, PAY_HIDE]);
  6.     llSetClickAction( CLICK_ACTION_PAY );
  7.     llSetText( "Payment Allowed", <1,1,1>, 1.0 );
  8. }
  9. disallowPay()
  10. {
  11.     canPay = FALSE;
  12.     llSetPayPrice(PAY_HIDE, [PAY_HIDE ,PAY_HIDE, PAY_HIDE, PAY_HIDE]);
  13.     llSetClickAction( CLICK_ACTION_TOUCH );
  14.     llSetText( "Payment NOT Allowed", <1,1,1>, 1.0 );
  15. }
  16. default
  17. {
  18.     state_entry()
  19.     {
  20.         llRequestPermissions(llGetOwner(), PERMISSION_DEBIT);
  21.         allowPay();
  22.         llSetTimerEvent( 5.0 );
  23.     }
  24.  
  25.     money( key id, integer amount )
  26.     {
  27.         llSay(0, "Received Money");
  28.     }
  29.  
  30.     touch_start(integer total_number)
  31.     {
  32.          allowPay();
  33.     }
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement