12.08.2017, 20:51
Hey, I do check in OnPlayerEnterVehicle if the engine off he send msg to player, but the engine on and he send the msg.
Thanks !
Edit:
I'm fix it.
Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) { GetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,boot,objective); if(engine == VEHICLE_PARAMS_OFF || engine == VEHICLE_PARAMS_UNSET) { SendClientMessage(playerid, COLOR_WHITE, "The engine of this vehicle is off. Use /engine to start it."); } return 1; }
Edit:
I'm fix it.