SA-MP Forums Archive
Why If I lock the doors of a car...[problem] - 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: Why If I lock the doors of a car...[problem] (/showthread.php?tid=275336)



Why If I lock the doors of a car...[problem] - CTCCoco - 09.08.2011

Why If I lock the doors of a car and if somebody run away and return, or he disconnect and connect again, they can enter to the car, even with the doors locked with this:

GetVehicleParamsEx(vehicleid, engine, lights2, alarm, doors2, bonnet, boot, objective);
SetVehicleParamsEx(vehicleid, engine, lights2, alarm, VEHICLE_PARAMS_ON, bonnet, boot, objective);

It only works when I use the command, but when somebody run away or disconnect and connect, they can enter to the car, it looks like it's not for all players.

Thanks for all, and sorry for my bad english.


Re: Why If I lock the doors of a car...[problem] - Jack_Leslie - 09.08.2011

I don't understand why you have lights2 and doors2?


Respuesta: Re: Why If I lock the doors of a car...[problem] - CTCCoco - 09.08.2011

Because I need 2 variables for my car system.


Re: Why If I lock the doors of a car...[problem] - Jack_Leslie - 09.08.2011

So us all the code..


Re: Why If I lock the doors of a car...[problem] - Outcast - 09.08.2011

You have to get vehicle params and lock/unlock the doors also under OnVehicleStreamIn.


AW: Why If I lock the doors of a car...[problem] - Nero_3D - 09.08.2011

If you had looked into the sa-mp wiki you would have saved another useless topic
Sorry about that but the truth is that every ~5 thread in this section is a waste

SetVehicleParamsForPlayer