06.11.2010, 07:45
Ok, i'm trying to make it so i can use AttachTrailerToVehicle. When i enter a check point the trailer gets created. How would i go about streaming in the Truck and the trailer?.. The ctype is my truck and the Trailer, Of course i'm sure you know what that is. I also have a lock command (which works fine) I'm just trying to stream in my other cars. Better yet, How do you streamin all cars on the server?
pawn Код:
public OnVehicleStreamIn(vehicleid, forplayerid)
{
if(Trailer[forplayerid]) return 1;
if(CarInfo[vehicleid][cType] == 15) return 1;
if(VehLocked[vehicleid] == 1)
{
SetVehicleParamsForPlayer(vehicleid,forplayerid, 0, 1);
}
else
{
SetVehicleParamsForPlayer(vehicleid,forplayerid, 0, 0);
}
return 1;
}