Vehicle doors - 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)
+--- Thread: Vehicle doors (
/showthread.php?tid=613390)
Vehicle doors -
Avetsky - 27.07.2016
Hey, how do I create a command which uses the syntax /vdoor [vehicleid] [door as number]? The command should open and close selected vehicle doors.
Re: Vehicle doors -
Threshold - 27.07.2016
Well first, you need a command processor or you can use the regular
Strcmp method in
OnPlayerCommandText.
Once you've created the command, you can use
GetVehicleDamageStatus and
UpdateVehicleDamageStatus to open or close the vehicle doors.
If you want someone to create this for you, then you're in the wrong place. Try here instead:
https://sampforum.blast.hk/showthread.php?tid=447813
Re: Vehicle doors -
Avetsky - 27.07.2016
Quote:
Originally Posted by Threshold
|
I am on phone right now so I can't post my previous code, but I already created a command which opens thr vehicle doors with SetVehicleParamsCarDoors, I assume that would work too?
Re: Vehicle doors -
Threshold - 27.07.2016
Wow I completely forgot that existed. Yeah that would work, and makes things much easier for you. Lol.