Engine ZCMD Command - 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: Engine ZCMD Command (
/showthread.php?tid=404601)
Engine ZCMD Command -
Astrais - 03.01.2013
Hello
I want to make a ZCMD Engine command(/car engine) Ive seen some tutorials but the code is quite long and confsuing. I saw a smaller one and this what I saw.
new engine,lights,alarm,doors,bonnet,boot,objective;
GetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective);
if(engine == VEHICLE_PARAMS_ON)
{
// do shit
}
if(engine == VEHICLE_PARAMS_OFF)
{
// do shit
}
How can I make this into a ZCMD Command and use /car engine to enable and disable the engine.