02:49 AM 11/08/2019
krieg
04:06 PM 11/08/2019
const redTeam = new Team("Red team","#FF0000")
const blueTeam = new Team("Blue team", "#0000FF")
Game.on('playerJoin', player => {
if (player.userid === 1337) {
player.team = redTeam
} else {
player.team = blueTeam
}
})
this will make the player with the userid of 1337 join the red team and the others would join the blue team
const blueTeam = new Team("Blue team", "#0000FF")
Game.on('playerJoin', player => {
if (player.userid === 1337) {
player.team = redTeam
} else {
player.team = blueTeam
}
})
this will make the player with the userid of 1337 join the red team and the others would join the blue team