Dont't check if the engine on
#1

Hey, I do check in OnPlayerEnterVehicle if the engine off he send msg to player, but the engine on and he send the msg.
Код:
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;
}
Thanks !

Edit:
I'm fix it.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)