17.04.2013, 13:11
Код:
if (IsPlayerInAnyVehicle(playerid)) { SetVehiclePos(GetPlayerVehicleID(playerid), LocX,LocY,LocZ); LinkVehicleToInterior(GetPlayerVehicleID(playerid), InteriorID); } if (!IsPlayerInAnyVehicle(playerid)) { SetVehiclePos(GetPlayerVehicleID(playerid), LocX,LocY,LocZ); SetPlayerInterior(playerid, InteriorID); }
Код:
if (IsPlayerInAnyVehicle(playerid)) { SetVehiclePos(GetPlayerVehicleID(playerid), LocX,LocY,LocZ); LinkVehicleToInterior(GetPlayerVehicleID(playerid), InteriorID); } else { SetVehiclePos(GetPlayerVehicleID(playerid), LocX,LocY,LocZ); SetPlayerInterior(playerid, InteriorID); }