public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
if(GetVehicleModel(vid) == 481 || GetVehicleModel(vid) == 509 || GetVehicleModel(vid) == 510)
{
new vid = GetPlayerVehicleID(playerid);
SetVehicleParamsEx(vid, 1, lights, alarm, doors, bonnet, boot, objective);
}
return 1;
}
you need to retrieve the vehicle params first!
GetVehicleParamsEx |
dont really know if vortex has this allredy :X
pawn Код:
vehicled is the vehicle's engine you want to taggle ON/OFF VAR is the the ON/OFF fucntion, "TRUE" = ON , "FALSE" = OFF |