Car lock - 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: Car lock (
/showthread.php?tid=241953)
Car lock -
austin070 - 19.03.2011
Hey guys. I know a server with a locking code that locks vehicles to a faction in a certain way. It locks it to a faction by not even acknowledging that you pressed "F" or "Enter". I'll clarify:
1. You walk up to the car.
2. Press F.
3. Absolutely nothing happens; it's like you never pressed F.
How could i do this?
Re: Car lock -
anantanni - 19.03.2011
Well I'm a begginer so i cant answer this.. But yeah i would like to use the code if someone helps
Re: Car lock -
antonio112 - 19.03.2011
SetVehicleParamsEx?
Here`s a link.
Copying the
Wiki example, only changed it to DOORS:
pawn Код:
new engine,lights,alarm,doors,bonnet,boot,objective;
GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(vid,engine,lights,alarm,1,bonnet,boot,objective);
That should work .. You can put it under a command ...
Re: Car lock -
austin070 - 19.03.2011
Quote:
Originally Posted by antonio112
SetVehicleParamsEx?
Here`s a link.
Copying the Wiki example, only changed it to DOORS:
pawn Код:
new engine,lights,alarm,doors,bonnet,boot,objective; GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective); SetVehicleParamsEx(vid,engine,lights,alarm,1,bonnet,boot,objective);
That should work .. You can put it under a command ...
|
I already know this method. What I want is for NOTHING to happen. No animations are displayed. Like I said, it's like you didn't even press F.
Re: Car lock -
antonio112 - 19.03.2011
Well, that`s exactly what it does. Lock the car ( Set VehicleParamsEx( vid,engine,lights,alarm,VEHICLE_PARAMS_OFF,bonnet, boot,objective); ), get out of the car and press F. Nothing happens.
Re: Car lock -
austin070 - 19.03.2011
Quote:
Originally Posted by antonio112
Well, that`s exactly what it does. Lock the car ( Set VehicleParamsEx( vid,engine,lights,alarm,VEHICLE_PARAMS_OFF,bonnet, boot,objective); ), get out of the car and press F. Nothing happens.
|
No, that makes you walk up to the car and shows the locked car entry animation.