SA-MP Forums Archive
Disable drive vehicles - 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: Disable drive vehicles (/showthread.php?tid=402245)



Disable drive vehicles - FL3GM4 - 25.12.2012

how to disable driving of some vehicles, and enable it on some command !?


Re: Disable drive vehicles - Blaeks - 25.12.2012

use function SetVehicleParamsForPlayer


Re: Disable drive vehicles - park4bmx - 25.12.2012

pawn Код:
stock VehicleEngine(vehicleid,VAR)
{
new engine,lights,alarm,doors,bonnet,boot,objective;
GetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,boot,objective);
if(VAR == 1)
    {
        SetVehicleParamsEx(vehicleid,VEHICLE_PARAMS_ON,lights,alarm,doors,bonnet,boot,objective);
    }else{
        SetVehicleParamsEx(vehicleid,VEHICLE_PARAMS_OFF,lights,alarm,doors,bonnet,boot,objective);
    }
}