haxball / haxball-issues

115 stars 43 forks source link

Plz help! #504

Open tatqq opened 6 years ago

tatqq commented 6 years ago

Hi, How to make the command not work on spectators? ( only for red and blue teams )

>               case 'p':
>           room.pauseGame(true);
>           break;
>       
>       case 'up':
>           room.pauseGame(false);
>           break;
kamild706 commented 6 years ago
case 'p':
  if (player.team !== 0) {
    room.pauseGame(true);
  }
  break;

case 'up':
  if (player.team !== 0) {
    room.pauseGame(false);
  }
  break;