Vehicle Params 1.0.1 -
Steamator - 03.12.2010
Vehicle Params
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:
Код:
enum vehicle_params
{
p_engine = 1,
p_lights,
p_alarm,
p_lock,
p_bonnet,
p_boot,
p_objective,
};
Example:
Код:
if( getVehicleParamState(vehicleid, p_lights) == VEHICLE_PARAMS_ON ) // when lights are on
{
// Code, when lights are on
return 1;
}
Edit current line:
Код:
#define VEHICLE_ALARM_SECONDS 15
Changelog
Version 1.0.0
- First Release
Version 1.0.1
- Removed Define (never used)
Download:
Pastebin
Download via Mediafire
Re: Vehicle Params 1.0.1 -
Luka P. - 03.12.2010
Nice work!
Re: Vehicle Params 1.0.1 -
WillyP - 03.12.2010
Nice work!
Re: Vehicle Params 1.0.1 -
Auxxx - 03.12.2010
Nice work ?
Re: Vehicle Params 1.0.1 -
Steamator - 03.12.2010
Thanks ?
Re: Vehicle Params 1.0.1 -
MrDeath537 - 03.12.2010
Really nice!
Re: Vehicle Params 1.0.1 -
Zh3r0 - 03.12.2010
Well done! Nice thinking.
Re: Vehicle Params 1.0.1 -
Mr L - 04.12.2010
Really nice.
Re: Vehicle Params 1.0.1 -
Steven82 - 04.12.2010
NICE!! Very nice good job(:
Re: Vehicle Params 1.0.1 -
[MWR]Blood - 04.12.2010
That's awesome!
Re: Vehicle Params 1.0.1 -
Haji - 04.12.2010
Looks good.
Re: Vehicle Params 1.0.1 -
Steamator - 04.12.2010
Thanks for using my Include!
Re: Vehicle Params 1.0.1 -
Mean - 04.12.2010
Good for you, you are becoming a pro
Love the lights, the feature I use most "frequently"
Re: Vehicle Params 1.0.1 -
frannic - 23.12.2010
How do i use toggle, i don't know what to fill in for the second parameter (boolean)
Re: Vehicle Params 1.0.1 -
GoldenM4 - 23.12.2010
thanks dude omg omgomg
Re: Vehicle Params 1.0.1 -
Jochemd - 23.12.2010
I love the GetVehicleParamState!
Re: Vehicle Params 1.0.1 -
frannic - 23.12.2010
My bad, i thought it would toggle it on when it was off and vice versa. That's clearly not the case.