SA-MP Forums Archive
Tutorial Request - 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: Tutorial Request (/showthread.php?tid=271964)



Tutorial Request - seanny - 26.07.2011

Hello,
I have tried searching for a Tutorial on how to add SAMP 0.3c Vehicle Controls, I found one before, But now I cant find it.


Re: Tutorial Request - Dr - 26.07.2011

https://sampwiki.blast.hk/wiki/SetVehicleParamsEx

https://sampwiki.blast.hk/wiki/GetVehicleParamsEx


Re: Tutorial Request - seanny - 26.07.2011

But the Wiki is Hard for me to understand


Re: Tutorial Request - Dr - 26.07.2011

You want to set the engine? make the /engine command then...

pawn Код:
new engine, lights, alarm, doors, bonnet, boot, objective;
new playervehicle = GetPlayerVehicleId(playerid);
GetVehicleParamsEx(playervehicle, engine, lights, alarm, doors, bonnet, boot, objective);
SetVehicleParamsEx(playervehicle, true, lights, false, doors, bonnet, boot, objective);
When you make the engine into true in SetVehicleParamsEx it turns it on, false is off.