24.05.2016, 16:13
PHP код:
RespawnVehicle(id)
{
DestroyVehicle(id);
if(Vehicle[id][VehiclePos][0] != 0.00000 && Vehicle[id][VehiclePos][1] != 0.00000 && Vehicle[id][VehiclePos][2] != 0.00000)
{
Vehicle[id][VehID] = CreateVehicle(Vehicle[id][Model], Vehicle[id][VehiclePos][0], Vehicle[id][VehiclePos][1], Vehicle[id][VehiclePos][2], Vehicle[id][VehiclePos][3], Vehicle[id][VehicleColour][0], Vehicle[id][VehicleColour][1], -1, Vehicle[id][Siren]);
SetVehicleVirtualWorld(Vehicle[id][VehID], Vehicle[id][VehicleVW]);
LinkVehicleToInterior(Vehicle[id][VehID], Vehicle[id][VehicleInt]);
}
return 1;
}
PHP код:
Vehicle[Vehicle[id][VehID]][VehID] = CreateVehicle(Vehicle[id][Model], Vehicle[id][VehiclePos][0], Vehicle[id][VehiclePos][1], Vehicle[id][VehiclePos][2], Vehicle[id][VehiclePos][3], Vehicle[id][VehicleColour][0], Vehicle[id][VehicleColour][1], -1, Vehicle[id][Siren]);
Change like this
PHP код:
RespawnVehicle(id)
{
DestroyVehicle(Vehicle[id][VehID]);
if(Vehicle[id][VehiclePos][0] != 0.00000 && Vehicle[id][VehiclePos][1] != 0.00000 && Vehicle[id][VehiclePos][2] != 0.00000)
{
Vehicle[id][VehID] = CreateVehicle(Vehicle[id][Model], Vehicle[id][VehiclePos][0], Vehicle[id][VehiclePos][1], Vehicle[id][VehiclePos][2], Vehicle[id][VehiclePos][3], Vehicle[id][VehicleColour][0], Vehicle[id][VehicleColour][1], -1, Vehicle[id][Siren]);
SetVehicleVirtualWorld(Vehicle[id][VehID], Vehicle[id][VehicleVW]);
LinkVehicleToInterior(Vehicle[id][VehID], Vehicle[id][VehicleInt]);
}
return 1;
}
PHP код:
RespawnVehicle(id);