用户:
我是谁..查看:8 回复:4 评论:8 创建时间:2020-04-05T13:44:17
如何做出跑酷终点奖励
求代码
帮助的人可以获得200源码币
QBZ_world.querySelector('.last').onEntityContact(({entity,other})=>{
if(!(other.player.canFly)){
other.player.canFly=true
other.player.invisible=true
world.say("恭喜"+other.player.name+"到达跑酷终点,并获得了飞行2分钟,隐身1分钟的奖励!!")
world.PVP = true
}
setTimeout(function wait_fly(){other.player.canFly = false;world.say(other.player.name+"解除了飞行")},120000 );
setTimeout(function wait_inv(){other.player.invisible= false;world.say(other.player.name+"解除了隐身")},60000 );
if(other.player.canFly){
setTimeout(function say(){world.querySelectorAll('.无人机').forEach((x) => x.say("无人机:"+other.player.name+",不许飞着做弊!我可看着呢!"))},1500)
}
})点赞1
评论