08.01.2013, 20:46
Anything with idcar iz suppose to be pVeh,
Because ur doing it for the vehicle id and not the model
Because ur doing it for the vehicle id and not the model
Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) { new pveh = GetVehicleModel(GetPlayerVehicleID(playerid)); if(pveh == 510 || pveh == 462 || pveh == 481 || pveh == 509) { gEngine[pveh] = 1; new engine,lights,alarm,doors,bonnet,boot,objective; GetVehicleParamsEx(pveh,engine,lights,alarm,doors,bonnet,boot,objective); SetVehicleParamsEx(pveh, 1, lights, 0, 0, 0, 0, 0); }