Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function(context, args)
- {
- if (!args)
- return "Please enter a user:'username', pass:'password', and a amount:'amount in GC' to deposit money."
- var userpair = {u:args.user, p:args.pass}
- var usercheck = #db.f(userpair).first_and_close()
- if (!usercheck)
- #s.chats.tell({to:context.caller, msg:"`DInvalid username or password.`"})
- else
- #s.chats.tell({to:context.caller, msg:"`DAre you sure you want to deposit " + args.amount + "? Confirm with confirm:true"})
- if(args.confirm = true)
- #s.accts.xfer_gc_to({to:"paypal", amount:args.amount})
- return "Thanks for using paypal!"
- else
- return "Deposit cancelled."
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement