1. 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!

  2. LOOKING FOR A VERSION OF SKRIPT??:

    You can always check our our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Voting system

Discussion in 'Skript' started by demonitisation, Sep 8, 2019.

Tags:
  1. d

    Joined:
    Sep 8, 2019
    Messages:
    1
    Likes Received:
    0
    Hi, I'm looking to see if anyone has a voting system (or the time to make one) which allows players to vote for another player's build, that also doesn't allow them to vote for their own. If anyone can help, please send!
     
  2. T

    ThatPerson Member

    Joined:
    Aug 27, 2019
    Messages:
    4
    Likes Received:
    0
    Try This :emoji_grinning:

    Code (Text):
    1. command /vote <player>:
    2.     permission: vote.player
    3.     trigger:
    4.         if arg-1 is not "%player%":
    5.             send "&aSuccesfully Voted For %arg-1%!"
    6.             set {vote.%player%} to arg-1
    7.             stop
    8.         send "&cYou Cant Vote For Yourself! Silly!"
    9.  
    10.  
    11. command /listvotes:
    12.     permission: vote.admin
    13.     trigger:
    14.         loop all players:
    15.             send "{vote.%loop-player%}"



    this will only work if all players that voted are online, i can try make a skript for offline players for you if you want :emoji_grinning:
     
  3. malia

    malia Well-Known Member

    Joined:
    Jul 24, 2019
    Messages:
    254
    Likes Received:
    17
    ^
    Code (Skript):
    1. if arg-1 is not "%player%":
    What???

    Also it would've been way easier just add
    Code (Skript):
    1. add "%player% -> %arg-1%" to {listvar::*}
    and split at " -> "
     
Loading...