#include <foreach>//you need this includenew randomplayer = Iter_Random(Player);TogglePlayerSpectating(playerid, 1);PlayerSpectateVehicle(playerid,randomplayer);