Advertisement
Guest User

Untitled

a guest
Oct 3rd, 2016
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. function(context, args)
  2. {
  3. if (!args)
  4. return "Please enter a user:'username', pass:'password', and a amount:'amount in GC' to deposit money."
  5.  
  6. var userpair = {u:args.user, p:args.pass}
  7. var usercheck = #db.f(userpair).first_and_close()
  8.  
  9. if (!usercheck)
  10. return "`D::: Invalid username or password. :::`"
  11. else
  12. return "Are you sure you want to deposit " + args.amount + "? Confirm with confirm:true"
  13. if(args.confirm = true)
  14. #s.accts.xfer_gc_to({to:"paypal", amount:args.amount})
  15. return "Thanks for using paypal!"
  16. else
  17. {
  18. return "Deposit cancelled."
  19. }
  20.  
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement