Pay by card [Roleplay Server]

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

Jerano

Member
Jul 8, 2023
3
0
1
22
Can someone make a script for me:
i making a Roleplay server and i really need this to work
I really would appreciate if someone can help me thanks :emoji_slight_smile:

Plugins:
Vault
EssentialsX

Example:

Shop Worker:
/Setpin <Customer> <amount>
* (Message Shop Worker Click on the Bank reader)

(Bank Reader) = (Pink Carpet)
(Works on any pink carpet)
Permission: Shop.ATM

* When done message (Customer) that he is being charged with <amount> By (Name of Shop Worker) Click on the Bank reader to pay.

Customer:
Clicks on (Pink Carpet) And console starts command: ("Groupbank addmoney <group> (Group of worker) <Amount>") and ("eco take (customer) <amount>")

but command only works if (Customer) have enough money and have this item in hand (a lime dye named "&a&lCard" with lore "Card From: %player%)

When Transaction is successful: Play sound (''UI_BUTTON_CLICK'') 2 times with a interval of 0.5 Seconds

Transaction time:
(Customer)
has 10 seconds to complete the transaction if its failed its reset for the next (customer)

Thanks for reading this :emoji_slight_smile:
 
Last edited: