Hello guys!
In my skript i have added a code that when a player joines the server, it gets added to a variable
But now i want to select a random name out of that variable.
For example:
There are 3 players in the server: Player1, Player2 and Player3
Now i want to chose 1 of them with a command.
All 3 of them are in the variable {murderlist::*}
So how can i make the skript randomly choose one
In my skript i have added a code that when a player joines the server, it gets added to a variable
code_language.skript:
add player to {murderlist::*}
But now i want to select a random name out of that variable.
For example:
There are 3 players in the server: Player1, Player2 and Player3
Now i want to chose 1 of them with a command.
All 3 of them are in the variable {murderlist::*}
So how can i make the skript randomly choose one