用户:阿柒已经走了查看:2 回复:13 评论:2 创建时间:2020-06-04T20:11:38
废话不说
https://box3create.codemao.cn/games/279e61e216b008b2d672
我只要大佬
现在这个图里已经很多人了,不是大佬的就bye~~~bye·~~了
GZ006//分组代码 var blue = 0; var red = 0; world.onPlayerJoin(({entity})=>{ entity.player.dui = Math.round(Math.random()*2); entity.player.qiang = 0 if(entity.player.dui==1){ if(red>=blue){ entity.player.dui=1; world.say(entity.player.name+'加入了蓝队'); entity.player.color = new Box3RGBAColor(0,0,0.9) entity.maxHp=500; entity.hp=500; blue++; }else{ entity.player.dui=2; world.say(entity.player.name+'加入了红队'); entity.player.color = new Box3RGBAColor(1,0,0) entity.maxHp=500; entity.hp=500; red++; } }else{ if(blue>=red){ entity.player.dui=2; world.say(entity.player.name+'加入了红队'); entity.player.color = new Box3RGBAColor(1,0,0) entity.maxHp=500; entity.hp=500; red++; }else{ entity.player.dui=1; world.say(entity.player.name+'加入了蓝队'); entity.player.color = new Box3RGBAColor(0,0,0.9) entity.maxHp=500; entity.hp=500; blue++; } } if(entity.player.dui==1){ entity.position.set(7, 10, 120);//玩家进来的时候,将ta传送到指定的坐标 entity.player.spawnPoint.copy(entity.position);//将玩家复活点复制为上面的坐标 }else{ entity.position.set(120, 10, 7);//玩家进来的时候,将ta传送到指定的坐标 entity.player.spawnPoint.copy(entity.position);//将玩家复活点复制为上面的坐标 }}) world.onPlayerLeave(({entity})=>{ if(entity.player.dui==2){ world.say('红队失去一人'); }else{ world.say('蓝队失去一人'); } })
点赞0
评论
GZ006var blue = 0;
var red = 0;
world.onPlayerJoin(({entity})=>{
entity.player.dui = Math.round(Math.random()*2);
entity.player.喵 = 0
if(entity.player.dui==1){
if(red>=blue){
entity.player.dui=1;
world.say(entity.player.name+'加入了蓝队');
entity.player.color = new Box3RGBAColor(0,0,0.9)
entity.maxHp=500;
entity.hp=500;
blue++;
}else{
entity.player.dui=2;
world.say(entity.player.name+'加入了红队');
entity.player.color = new Box3RGBAColor(1,0,0)
entity.maxHp=500;
entity.hp=500;
red++;
}
}else{
if(blue>=red){
entity.player.dui=2;
world.say(entity.player.name+'加入了红队');
entity.player.color = new Box3RGBAColor(1,0,0)
entity.maxHp=500;
entity.hp=500;
red++;
}else{
entity.player.dui=1;
world.say(entity.player.name+'加入了蓝队');
entity.player.color = new Box3RGBAColor(0,0,0.9)
entity.maxHp=500;
entity.hp=500;
blue++;
}
}
if(entity.player.dui==1){
entity.position.set(7, 10, 120);//玩家进来的时候,将ta传送到指定的坐标
entity.player.spawnPoint.copy(entity.position);//将玩家复活点复制为上面的坐标
}else{
entity.position.set(120, 10, 7);//玩家进来的时候,将ta传送到指定的坐标
entity.player.spawnPoint.copy(entity.position);//将玩家复活点复制为上面的坐标
}})
world.onPlayerLeave(({entity})=>{
if(entity.player.dui==2){
world.say('红队失去一人');
}else{
world.say('蓝队失去一人');
}
})点赞0
评论