gamemode check

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

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

LatteKunGz

Member
Aug 15, 2020
14
0
1
28
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 : (
 
Here is a version of the Skript, didn't test it though:
Code:
command /check:
  trigger:
    loop all players:
      set {_c} to 0
      set {_s} to 0
      if loop-player's gamemode is creative:
        add 1 to {_c} 
      if loop-player's gamemode is survival:
        add 1 to {_s} 
      message "There are %{_c} % players in creative and %{_s} % in survival" to executor

It cannot work since I didn't use Skript for a long time, so feel free to tell me.
 
Status
Not open for further replies.