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!

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

i need help

Discussion in 'Requests' started by LauchGame, Dec 24, 2019.

  1. LauchGame

    LauchGame Member

    Joined:
    Nov 24, 2019
    Messages:
    11
    Likes Received:
    0
    Category: Skript

    Suggested name: /Members

    Spigot/Skript Version: 1.12.2

    What I want:
    So I have a / duty script where you can go into the duty but I want you to see who is in the duty, how does that work?

    Ideas for commands:

    /Members


    Ideas for permissions:

    rp.member


    When I'd like it by: 24.12.2019-25.12.2019
     
  2. Policiu

    Policiu Member

    Joined:
    Jan 28, 2017
    Messages:
    15
    Likes Received:
    0
    Could you post the skript you have already?

    So you just want to list the "members" of the duty? If you add the players to the duty, then you just need to loop through the list to get the players.
     
  3. Goose

    Supporter

    Joined:
    Nov 23, 2019
    Messages:
    429
    Likes Received:
    30
    Code (Text):
    1. command /duty:
    2.     permission: rp.duty
    3.     trigger:
    4.         if {duty.%player%} is false:
    5.             add player to {duty::*}
    6.             set {duty.%player%} to true
    7.         if {duty.%player%} is true:
    8.             remove player from {duty::*}
    9.             set {duty.%Player%} to false
    10. command /members:
    11.     permission: rp.member
    12.     trigger:
    13.         send "&cPlayers in duty: &a%{duty::*}%
    [/CODE]
     
  4. Conutik

    Conutik Member

    Joined:
    Jan 12, 2020
    Messages:
    19
    Likes Received:
    1
    Code (Text):
    1. command /duty:
    2.     permission: rp.duty
    3.     trigger:
    4.         if {duty.%player%} is false:
    5.             add player to {duty::*}
    6.             set {duty.%player%} to true
    7.         if {duty.%player%} is true:
    8.             remove player from {duty::*}
    9.             set {duty.%Player%} to false
    10. command /members:
    11.     permission: rp.member
    12.     trigger:
    13.         send "&cPlayers in duty:"
    14.         loop {duty::*}:
    15.             send "%loop-value%"
     

Share This Page

Loading...