Hello guys,
I am wroking on a own murder gamemode for my server network
Now I have made a code that the skript randomly chose one person as murder and one person as gunner.
But no my question is...
How can i skript that the murder can't be chosen als gunner so a player can only has one role.
This is my code for when the game starts:
EXTRA: {murder::innocent::*} is the variable a player getsa added in when he joines the game
I am wroking on a own murder gamemode for my server network
Now I have made a code that the skript randomly chose one person as murder and one person as gunner.
But no my question is...
How can i skript that the murder can't be chosen als gunner so a player can only has one role.
This is my code for when the game starts:
code_language.skript:
set {murder:murder} to random element out of {murderlist::*}
set {murder:murder:%{murder:murder}%} to true
remove {murder:murder} from {murder::innocent::*}
set {murder:gunner} to random element out of {murderlist::*}
set {murder:gunner:%{murder:gunner}%} to true
remove {murder:gunner} from {murder::innocent::*}
send "{@MD} &7You are the &4&lMurder" to {murder:murder}
send "{@MD} &7You are the &6&lGunner" to {murder:gunner}
send "{@MD} &7You are an &3Innocent" to {murder::innocent::*}
EXTRA: {murder::innocent::*} is the variable a player getsa added in when he joines the game