[Include] Sgt's Vehicle Functions
#1

Sgt's Vehicle Functions Include
Hi guys,
This include contains some functions to control vehicles more easily. Some are "new" some are just re-called.

The current release is a beta stage and I would be happy about some suggestions for more functions (either re-names of old, or creation of new functions)!!

Version 0.6
Код:
 * GetVehicleModelByName(name[]);
 * IsValidVehicleModel(modelid);
 * VehicleExist(vehicleid); --> checks if a vehicle exists
Version 0.5
Код:
 * GetPlayerVehicleModel(playerid);
 * GetVehicleSpeed(vehicleid);
 * GetVehiclePlayers(vehicleid, player1, player2, player3, player4); --> DOES NOT RECOGNIZE PLAYERS IN SEATS HIGHER THAN ID 3
-----
0.5.1 - GetVehicleSpeed fixed
Version 0.4
Код:
 * Float:GetVehicleRot(vehicleid);
 - FreezeVehicle updated
Version 0.3
Код:
 * StopVehicle(vehicleid);
 * FreezeVehicle(vehicleid, freezstate); --> 1 = freezed & 0 = unfreezed
 * ToggleVehicleParams(vehicleid, params[], pstate) --> T_ENGINE, T_LIGHTS, T_ALARM, T_TRUNK, T_BONNET, T_OBJECTIVE
Version 0.2
Код:
 * ToggleVehicleTrunk(vehicleid, trunkstate); --> 0 = closed & 1 = open
 * ToggleVehicleBonnet(vehicleid, bonnetstate); --> 0 = closed & 1 = open
 * ToggleVehicleAlarm(vehicleid, alarmstate); --> 0 = off & 1 = on
 * ToggleVehicleObjective(vehicleid, objectivestate); --> 0 = off & 1 = on
Version 0.1
Код:
 * RespawnVehicle(vehicleid)
 * SetVehicleColor(vehicleid, color1, color2);
 * SetVehicleModel(vehicleid, newmodel);	--> Does only work for vehicles created with "CreateVehicle"
 * SetVehicleInterior(vehicleid, interiorid);
 * FlipVehicle(vehicleid);
 * SetVehicleRandomNumberPlate(vehicleid);
 * ExplodeVehicle(vehicleid);
 * ToggleVehicleEngine(vehicleid, enginestate); --> 0 = off & 1 = on
 * ToggleVehicleLight(vehicleid, lightstate); --> 0 = off & 1 = on
 * TeleportVehicle(vehicleid, Float:XCoord, Float:YCoord, Float:ZCoord, Float:Angle, Interiorid);
 * TeleportVehicleToPlayer(vehicleid, playerid);
 * Float:GetPlayerDistanceToVehicle(playerid, vehicleid);
 * GetPlayerNearestVehicle(playerid);
 * PutPlayerInNearestVehicle(playerid, seatid); --> same seatIDs as for PutPlayerInVehicle
Thanks and I hope you'll like it, although there aren't that much new functions yet.

External download: click here
Reply


Messages In This Thread
Sgt's Vehicle Functions - by Sascha - 12.11.2011, 21:41
Re: Sgt's Vehicle Functions - by GangsTa_ - 12.11.2011, 21:44
Re: Sgt's Vehicle Functions - by Sascha - 12.11.2011, 21:51
Re: Sgt's Vehicle Functions - by Norn - 12.11.2011, 22:00
Re: Sgt's Vehicle Functions - by Sascha - 12.11.2011, 22:02
Re: Sgt's Vehicle Functions - by GangsTa_ - 12.11.2011, 22:08
Re: Sgt's Vehicle Functions - by System64 - 13.11.2011, 06:10
Re: Sgt's Vehicle Functions - by Sascha - 13.11.2011, 11:43
Re: Sgt's Vehicle Functions - by Michael@Belgium - 13.11.2011, 12:17
Re: Sgt's Vehicle Functions - by Sascha - 13.11.2011, 12:25

Forum Jump:


Users browsing this thread: 3 Guest(s)