Solved ATM Script Help

  • 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 community!

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

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Jerano

Member
Jul 8, 2023
3
0
1
Guys i try to make a ATM Script but its not working?

on first join:
set {bankpas.%player%} to false

command /Givecard <player>:
permission: Card.give
permission message: you dont have permission
trigger:
if arg-1 is set:
set {item} to 1 lime dye named "&acard"
give {item} to arg-1

command /setpin [<integer>]:
trigger:
if arg-1 is set:
set {bankpas.%player%} to true
set {bankpas.%player%} to arg-1

on right click on sticky piston:
if player's tool is lime dye named "&acard":
if {card.%player%} is false:
message "&7[&aATM&7]&7Make a Pin with /setpin [PIN]"

on right click on sticky piston:
if player's tool is lime dye named "&acard":
if {card.%player%} is true:
message "&7[&aATM&7]&7Type your pin]"
if %chatmessage% same as {card.%player%}
ATMGUI

command /removecard <player>:
permission: card.remove
permission message: you dont have permission
trigger:
if arg-1 is set:
set {card.%player%} to false