13.05.2018, 12:48
Use TogglePlayerSpectating on playerid first, then break after:
Usually i check if the player is in the vehicle first, otherwise the player would spectate wrongly.
If the current target is not in vehicle, it will look for next player.
Usually i check if the player is in the vehicle first, otherwise the player would spectate wrongly.
Код:
new vehicleid = GetPlayerVehicleID(target); if (vehicleid) { TogglePlayerSpectating(playerid, 1); PlayerSpectateVehicle(playerid, vehicleid); break; }