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 out 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.

gamemode check

Discussion in 'Skript' started by LatteKunGz, Dec 7, 2021.

Tags:
Thread Status:
Not open for further replies.
  1. LatteKunGz

    LatteKunGz Member

    Joined:
    Aug 15, 2020
    Messages:
    14
    Likes Received:
    0
    so i want to make like

    command /check:
    trigger:
    Send: "Creative "%creative total% players"
    Send: "Survival "%survival total% players"

    please help can i make like this | sorry for bad eng : (
     
  2. Turb032

    Turb032 Active Member

    Joined:
    Jan 16, 2020
    Messages:
    109
    Likes Received:
    0
    Here is a version of the Skript, didn't test it though:
    Code (Text):
    1. command /check:
    2.   trigger:
    3.     loop all players:
    4.       set {_c} to 0
    5.       set {_s} to 0
    6.       if loop-player's gamemode is creative:
    7.         add 1 to {_c}
    8.       if loop-player's gamemode is survival:
    9.         add 1 to {_s}
    10.       message "There are %{_c} % players in creative and %{_s} % in survival" to executor
    11.  
    It cannot work since I didn't use Skript for a long time, so feel free to tell me.
     
Thread Status:
Not open for further replies.

Share This Page

Loading...