[Include] Vehicle Params 1.0.1
#1

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
Reply
#2

Nice work!
Reply
#3

Nice work!
Reply
#4

Nice work ?
Reply
#5

Thanks ?
Reply
#6

Really nice!
Reply
#7

Well done! Nice thinking.
Reply
#8

Really nice.
Reply
#9

NICE!! Very nice good job(:
Reply
#10

That's awesome!
Reply
#11

Looks good.
Reply
#12

Thanks for using my Include!
Reply
#13

Good for you, you are becoming a pro

Love the lights, the feature I use most "frequently"
Reply
#14

How do i use toggle, i don't know what to fill in for the second parameter (boolean)
Reply
#15

thanks dude omg omgomg
Reply
#16

I love the GetVehicleParamState!
Reply
#17

My bad, i thought it would toggle it on when it was off and vice versa. That's clearly not the case.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)