13.11.2009, 04:06
I think it would be better to do /spec [playerid/name] at all, and it'll detect alone if it needs to spectate a vehicle or not, though if the player leaves the vehicle you need to change to PlayerSpectatePlayer, and if the player is on foot and enters a vehicle, you need to change to PlayerSpectateVehicle.