Solved Minigame player counter

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

Uzumaki

Well-Known Member
Feb 20, 2017
310
10
18
Hi i need to make a minigame player counter (multiarena)

what i did

code_language.skript:
every second:   
    loop all players in "1":
        if loop-player has 1 clock:
            set {alive.1} to number of loop-player

something like that but to work, thanks
 
Do you have a code, so they can join a minigame?
 
Hi i need to make a minigame player counter (multiarena)

what i did

code_language.skript:
every second:  
    loop all players in "1":
        if loop-player has 1 clock:
            set {alive.1} to number of loop-player

something like that but to work, thanks
if they're in a specific region loop them like "
code_language.skript:
loop all players:
   if "%region%" is "1 in world world":
        if loop-player has compass:
            etc
 
if they're in a specific region loop them like "
code_language.skript:
loop all players:
   if "%region%" is "1 in world world":
        if loop-player has compass:
            etc
I'm pretty sure the following may work:
code_language.skript:
loop all players in region "1":
  if loop-player's inventory contains compass:
    #do stuff
 
  • Like
Reactions: Wynnevir
if they're in a specific region loop them like "
code_language.skript:
loop all players:
   if "%region%" is "1 in world world":
        if loop-player has compass:
            etc

code_language.skript:
set {alive.1} to number of loop-player

%{alive.1}% = Player name and i want number
[doublepost=1502206687,1502206649][/doublepost]
I'm pretty sure the following may work:
code_language.skript:
loop all players in region "1":
  if loop-player's inventory contains compass:
    #do stuff

code_language.skript:
set {alive.1} to number of loop-player

%{alive.1}% = Player name and i want number
 
just add snow pyon or Wynnevir after "#do stuff / etc" just add "add 1 to {Alive}"
 
Status
Not open for further replies.