SetVehicleParamsForPlayer - 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: SetVehicleParamsForPlayer (
/showthread.php?tid=164401)
SetVehicleParamsForPlayer -
Mystique - 31.07.2010
Hello, I would like to have a small explanation about how you reapply the SetVehicleParamsForPlayer function in OnVehicleStreamIn and why you need to do it.
Re: SetVehicleParamsForPlayer -
KennethRandall - 31.07.2010
https://sampwiki.blast.hk/wiki/SetVehicleParamsForPlayer
For both:
pawn Код:
new myMarkedCar;
public OnGameModeInit() //Or another callback
{
myMarkedCar = CreateVehicle(400, 0.0, 0.0, 5.0, 0.0, 0,0, -1); //For example: Black Landstalker near Blueberry Acres
return 1;
}
//Whatever your want
public OnVehicleStreamIn(vehicleid, forplayerid)
{
if(vehicleid == myMarkedCar)
{
SetVehicleParamsForPlayer(TmyMarkedCar, forplayerid, 1, 0); // marker can be visible only if the vehicle streamed for player
}
return 1;
}
Re: SetVehicleParamsForPlayer -
Mystique - 31.07.2010
So if I am using a variable to check if the vehcle is locked I need to put CarInfo[i][cLocked] instead of the 0?