03-17-2010, 08:54 PM
Easy Vehicle Functions
Functions:
- AddPrivateVehicle(Owner[], Model, Float
, Float
, Float
, Float:A, Color1, Color2, RespawnDelay);
- AddRandomVehicle(Float
, Float
, Float
, Float:A, RespawnDelay);
- AddVehicleLine(HowMany, Model, Float
, Float:FirstY, Float
, Float:A, Color1, Color2, RespawnDelay);
- AddVehicleRow(HowMany, Model, Float:FirstX, Float
, Float
, Float:A, Color1, Color2, RespawnDelay);
- ExplodeVehicle(vehicleid, size);
- LockVehicleForAll(vehicleid, bool:lock);
- LockVehicleForPlayer(playerid, vehicleid, bool:lock);
- WarpPlayerToVehicle(playerid, vehicleid);
- WarpVehicleToPlayer(vehicleid, playerid);
- LoadEVFVehiclesFromFiles();
- GetVehicleName(vehicleid);
- SetVehiclePosEx(vehicleid, Float
, Float
, Float
, Float:A);
- GetVehiclePosEx(vehicleid, &Float
, &Float
, &Float
, &Float:A);
- GetVehicleOwner(vehicleid); (Just working with private vehicles);
- GetVehicleDriverID(vehicleid);
- SavePrivateVehicle(Owner[], Model, Float
, Float
, Float
, Float:A, Color1, Color2, RespawnDelay);
- SaveRandomVehicle(Float
, Float
, Float
, Float:A, RespawnDelay);
- SaveVehicleLine(HowMany, Model, Float
, Float:FirstY, Float
, Float:A, Color1, Color2, RespawnDelay);
- SaveVehicleRow(HowMany, Model, Float:FirstX, Float
, Float
, Float:A, Color1, Color2, RespawnDelay);
- SaveNormalVehicle(modelid, Float:x, Float:y, Float
, Float:angle, color1, color2, respawn_delay);
Installation:
1. Step: Download the .rar
2. Step: Put the .inc file into "/pawno/includes"
3. Step: Add "#include <pvehicles>" on top of your script.
4. Step: Add the functions to your script
5. Step: .::VERY IMPORTANT::. Add "INC_VehicleSpawn(vehicleid);" to your OnVehicleSpawn callback and "INC_VehicleStateChange(playerid, newstate);" to your OnPlayerStateChange callback.
6. Step: Create one Folder in the scriptfiles which should be called: "EVF".
7. Add my functions to your script.
8. Compile. (If there should be any errors -> ASK HERE FOR SUPPORT
9. Have fun!
Screenshots/Videos:
[99.Pawn]AddPrivateVehicleFunction
[99.Pawn]AddVehicleLine function
![[Image: sa-mp-006.jpg]](http://b.imagehost.org/t/0812/sa-mp-006.jpg)
Download/Mirrors:
![[Image: Vsya.jpg]](http://solidfiles.com/info_imgs/Vsya.jpg)
Questions/Feedback/Suggestions/Bugreport:
Feel free to talk about the include here.
![[Image: neonglow2.jpg]](http://i829.photobucket.com/albums/zz212/DJvamped/neonglow2.jpg)