22.02.2018, 00:26
Код:
else if(CreatedCars[iIterator] == INVALID_VEHICLE_ID) { new Float: fVehPos[4]; //new iVehicle[MAX_PLAYERS]; print("1"); new fVW = GetPlayerVirtualWorld(playerid); GetPlayerPos(playerid, fVehPos[0], fVehPos[1], fVehPos[2]); GetPlayerFacingAngle(playerid, fVehPos[3]); CreatedCars[iIterator] = CreateVehicle(iVehicle, fVehPos[0], fVehPos[1], fVehPos[2], fVehPos[3], iColors[0], iColors[1], -1); print("2"); VehicleFuel[CreatedCars[iIterator]] = 100.0; Vehicle_ResetData(CreatedCars[iIterator]); print("3"); LinkVehicleToInterior(CreatedCars[iIterator], GetPlayerInterior(playerid)); print("4"); SetVehicleVirtualWorld(CreatedCars[iIterator], fVW); return SendClientMessage(playerid, 0xFF0000FF, "Admin vehicle spawned"); //Here }