03.12.2010, 17:18
Vehicle Params
Inside:
Enum:
Example:
Edit current line:
Changelog
Version 1.0.0
- First Release
Version 1.0.1
- Removed Define (never used)
Download:
Pastebin
Download via Mediafire
Inside:
Код:
forward togglePlayerVehicleEngine(playerid, bool:launched); forward togglePlayerVehicleLights(playerid, bool:launched); forward togglePlayerVehicleAlarm(playerid, bool:launched, bool:auto_stop); forward togglePlayerVehicleLock(playerid, bool:open); forward togglePlayerVehicleBonnet(playerid, bool:open); forward togglePlayerVehicleBoot(playerid, bool:open); forward togglePlayerVehicleMarker(playerid, bool:show); forward getPlayerVehicleParamState(playerid, vehicle_params: param_id); forward toggleVehicleEngine(vehicleid, bool:launched); forward toggleVehicleLights(vehicleid, bool:launched); forward toggleVehicleAlarm(vehicleid, bool:launched, bool:auto_stop); forward toggleVehicleLock(vehicleid, bool:open); forward toggleVehicleBonnet(vehicleid, bool:open); forward toggleVehicleBoot(vehicleid, bool:open); forward toggleVehicleMarker(vehicleid, bool:show); forward getVehicleParamState(vehicleid, vehicle_params: param_id); forward stopVehicleAlarm(vehicleid);
Код:
enum vehicle_params { p_engine = 1, p_lights, p_alarm, p_lock, p_bonnet, p_boot, p_objective, };
Код:
if( getVehicleParamState(vehicleid, p_lights) == VEHICLE_PARAMS_ON ) // when lights are on { // Code, when lights are on return 1; }
Код:
#define VEHICLE_ALARM_SECONDS 15
Version 1.0.0
- First Release
Version 1.0.1
- Removed Define (never used)
Download:
Pastebin
Download via Mediafire