Any tips guys .. If players dies, i want to respawn them into designated location if($loser == $this->players[0]){ $winner = $this->players[1]; } else{ $winner = $this->players[0]; } $player1->getRespawn($pos_player1, 90, 0); $player2->getRespawn($pos_player2, -90, 0);