Trying to stream stuff in - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Trying to stream stuff in (
/showthread.php?tid=188061)
Trying to stream stuff in -
ihatetn931 - 06.11.2010
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;
}