Hello There, Guest! Login or Register


[INC] 99.Pawn - Easy Vehicle Functions - "EVF"
#1
Easy Vehicle Functions

Functions:
  • AddPrivateVehicle(Owner[], Model, Float:X, Float:Y, Float:Z, Float:A, Color1, Color2, RespawnDelay);
  • AddRandomVehicle(Float:X, Float:Y, Float:Z, Float:A, RespawnDelay);
  • AddVehicleLine(HowMany, Model, Float:X, Float:FirstY, Float:Z, Float:A, Color1, Color2, RespawnDelay);
  • AddVehicleRow(HowMany, Model, Float:FirstX, Float:Y, Float:Z, 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:X, Float:Y, Float:Z, Float:A);
  • GetVehiclePosEx(vehicleid, &Float:X, &Float:Y, &Float:Z, &Float:A);
  • GetVehicleOwner(vehicleid); (Just working with private vehicles);
  • GetVehicleDriverID(vehicleid);
  • SavePrivateVehicle(Owner[], Model, Float:X, Float:Y, Float:Z, Float:A, Color1, Color2, RespawnDelay);
  • SaveRandomVehicle(Float:X, Float:Y, Float:Z, Float:A, RespawnDelay);
  • SaveVehicleLine(HowMany, Model, Float:X, Float:FirstY, Float:Z, Float:A, Color1, Color2, RespawnDelay);
  • SaveVehicleRow(HowMany, Model, Float:FirstX, Float:Y, Float:Z, Float:A, Color1, Color2, RespawnDelay);
  • SaveNormalVehicle(modelid, Float:x, Float:y, Float:z, 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]

Download/Mirrors:

[Image: Vsya.jpg]

Questions/Feedback/Suggestions/Bugreport:

Feel free to talk about the include here.



Reply
#2
Nice  ;)  :w
Reply
#3
Haven't had the time to check the source, but looks nice
Reply
#4
looks good
Reply