Disable drive vehicles
#1

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

use function SetVehicleParamsForPlayer
Reply
#3

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);
    }
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)