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!
You can always check out skUnity Downloads for downloads and any other information about Skript!
add player to {list_of_vanished_players::*}
set {_numGlobal} to size of all bungeecord players
set {_player_count} to difference between {_numGlobal} and {_vanished_player_amount}
set {_vanished_player_amount} to size of {list_of_vanished_players::*}
broadcast "%{_vanished_player_amount}%"
set {_player_count} to difference between {_numGlobal} and {_vanished_player_amount}
add player to {list_of_vanished_players::*}
set {_numGlobal} to size of all bungeecord players
set {_vanished_player_amount} to size of {list_of_vanished_players::*}
set {_player_count} to difference between {_numGlobal} and {_vanished_player_amount}
broadcast "%{_vanished_player_amount}%"
@Donut it says <none> when i replaced broadcast "%{_vanished_player_amount}%"
with
broadcast "%{_player_count}%"
http://skunity.com/expressions?filter=SkQuery
add player to {list_of_vanished_players::*}
set {_numGlobal} to size of all bungeecord players
set {_vanished_player_amount} to size of {list_of_vanished_players::*}
set {_amountGlobal} to {_numGlobal} parsed as an integer
set {_amountVanished} to {_vanished_player_amount} parsed as an integer
set {_player_count} to {_amountGlobal} - {_amountVanished}
broadcast "%{_player_count}%"
You're literally wasting time and adding more posts to this thread by not telling him the specific "expression" you're talking about.
add player to {sql_.invis::*}
set {numGlobal} to size of all bungeecord players
set {invis} to size of {sql_.invis::*}
remove player from {sql_.invis::*}
broadcast "%{numGlobal}-{invis}%"
remove player from {sql_.invis::*}
set {numGlobal} to size of all bungeecord players
set {invis} to size of {sql_.invis::*}
broadcast "%{numGlobal}%"
You're literally wasting time and adding more posts to this thread by not telling him the specific "expression" you're talking about.
@White Thanks. But i already figured it out before you made the script for me. Although i got 1 problem..
When you go into vanish:
code_language.skript:add player to {sql_.invis::*} set {numGlobal} to size of all bungeecord players set {invis} to size of {sql_.invis::*} remove player from {sql_.invis::*} broadcast "%{numGlobal}-{invis}%"
When you come out of vanish:
code_language.skript:remove player from {sql_.invis::*} set {numGlobal} to size of all bungeecord players set {invis} to size of {sql_.invis::*} broadcast "%{numGlobal}%"
If i have two admins go into vanish, it won't take away 1 from the number.
So say if i have 2 players, 1 goes into vanish, it will say "1" in chat.
If the 2nd player goes into vanish, it would still broadcast "1"