Solved Coin System

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

Status
Not open for further replies.

T3scioR_

Member
Oct 12, 2020
3
0
1
Hey! I have a coin system and I would like that when we click on the sunflower item named "&e&lName", the item disappears is added to the number of items to the player's money, for example I have 15 coins , I click on it and it will disappear and add $ 15 to the player's bank
 
Code:
on right click with sunflower:
   if name of event-item is "&e&lName":
       cancel event
       remove sunflower from player's held item
       add 1 to balance of player
       message "You cashed in your &e&lCoin &rand received &a$1&r!" to player
 
Status
Not open for further replies.