How to lock my vehicle - 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: How to lock my vehicle (
/showthread.php?tid=122731)
How to lock my vehicle -
Blt950 - 23.01.2010
I never got the point of this vehicle steam thing, so I need some help understanding it.. This is what happens, player starts the license test driving, a new car spawns (LessonCar[playerid]) and it gets teleported into drivers seat of it. Now I want the current car the player just got teleported into (LessonCar[playerid]) to lock all doors of it.
The question is, would only this do it?
pawn Код:
public OnVehicleStreamIn(vehicleid, forplayerid)
{
if(TakingLesson[forplayerid] == 1)
{
if(LessonCar[playerid] != 0)
{
SetVehicleParamsForPlayer(vehicleid, forplayerid, 0, 1); // Lock it when inside ?
}
}
return 1;
}
Or how to lock it?
Thanks for help