Код:
if(summ_a == summ_user){
message.send(`@id${message.user.id}(${message.user.tag}),
? Скорость вашей машины: ${summ_user}%
? Скорость ${a.tag} ${summ_a}%
? Шансы равны...
? Ничья.
`)
if(a.transport.car == 1)
{
return message.send ({attachment: utils.pick(["photo-222465808_457239020"])});
}
if(a.transport.car == 2)
{
return message.send ({attachment: utils.pick(["photo-222465808_457239021"])});
}
if(a.transport.car == 3)
{
return message.send ({attachment: utils.pick(["photo-222465808_457239022"])});
}
if(a.transport.car == 4)
{
return message.send ({attachment: utils.pick(["photo-222465808_457239023"])});
}
if(a.transport.car == 5)
{
return message.send ({attachment: utils.pick(["photo-222465808_457239024"])});
}
if(a.transport.car == 6)
{
return message.send ({attachment: utils.pick(["photo-222465808_457239025"])});
}
if(a.transport.car == 7)
{
return message.send ({attachment: utils.pick(["photo-222465808_457239026"])});
}
if(a.transport.car == 8)
{
return message.send ({attachment: utils.pick(["photo-222465808_457239027"])});
}
if(a.transport.car == 9)
{
return message.send ({attachment: utils.pick(["photo-222465808_457239019"])});
};
if(message.user.transport.car == 1)
{
return message.send ({attachment: utils.pick(["photo-222465808_457239020"])});
}
if(message.user.transport.car == 2)
{
return message.send ({attachment: utils.pick(["photo-222465808_457239021"])});
}
if(message.user.transport.car == 3)
{
return message.send ({attachment: utils.pick(["photo-222465808_457239022"])});
}
if(message.user.transport.car == 4)
{
return message.send ({attachment: utils.pick(["photo-222465808_457239023"])});
}
if(message.user.transport.car == 5)
{
return message.send ({attachment: utils.pick(["photo-222465808_457239024"])});
}
if(message.user.transport.car == 6)
{
return message.send ({attachment: utils.pick(["photo-222465808_457239025"])});
}
if(message.user.transport.car == 7)
{
return message.send ({attachment: utils.pick(["photo-222465808_457239026"])});
}
if(message.user.transport.car == 8)
{
return message.send ({attachment: utils.pick(["photo-222465808_457239027"])});
}
if(message.user.transport.car == 9)
{
return message.send ({attachment: utils.pick(["photo-222465808_457239019"])});
};
}
summ_a - противник
summ_user - вы.