27.05.2011, 12:50
(
Последний раз редактировалось Im_BanK; 28.05.2011 в 10:00.
)
Car Ownership.
PS: Some writings are in Romanian.You can translate it yourself.
Do not add this FS in server.cfg
Commands!!!
/v buy = Buy's the current car your IN.
/v park = Park's the car in the current location.
/v setplate = Set's the vehicle Plate to your own.
/v color = Change's the car color.
/v sell = Sell's the car at a DealerShip location.
/v lock(1-3) = Lock's the car.
/asetkey = Set's a player Car Key for Null write -1. Something like /setstat
/mycars = Show's the owned cars.
/removetuning = Remove's the tuning parts 1 by one or all.
/acreatecar = Create's a vehicle.EX: /acreatecar 522(NRG-500) 0(color1) 1(color2) 50000(car price)
/adeletecar = Delete's the current car from masini.cfg
/apark = Admin car park.
/asellcar = Admin sell car.
/v sellto = Sell's the car to another player.
/accept = Accept's the current car sell.
/cancel = Cancel's the current car sell.
added in v2.3
/v locate(1-3) = Locate your car and place a checkpoint on minimap.
/v tow(1-3) = Tow your car to your last parked location.
WARNING!!!
To make this FS work you shold do exactly:
Place this in your gamemode, or implement.
Not to have:
1: Another car ownership.
2: Dynamic Vehicle System.
Now.
You shold count all your cars inside your gamemode something like:
AddStaticVehicle or CreateVehicle.
EX:
after you counted all your cars, go inside the FS and modify:
to:
PS: if you have for ex 500 cars you should put 501.
EX:
This FS is still under development.
Bugs:
I dind't found any.
If you find some post them here.
DOWNLOAD LINKS v2.3:
V2.3 Download MegaUpload
V2.3 Download SendSpace
V2.3 Download SolidFiles
DOWNLOAD LINKS:
Download MegaUpload
Download SendSpace
Download SolidFiles
PasteBin here
Hope you like it.
PS: Some writings are in Romanian.You can translate it yourself.
Do not add this FS in server.cfg
Commands!!!
/v buy = Buy's the current car your IN.
/v park = Park's the car in the current location.
/v setplate = Set's the vehicle Plate to your own.
/v color = Change's the car color.
/v sell = Sell's the car at a DealerShip location.
/v lock(1-3) = Lock's the car.
/asetkey = Set's a player Car Key for Null write -1. Something like /setstat
/mycars = Show's the owned cars.
/removetuning = Remove's the tuning parts 1 by one or all.
/acreatecar = Create's a vehicle.EX: /acreatecar 522(NRG-500) 0(color1) 1(color2) 50000(car price)
/adeletecar = Delete's the current car from masini.cfg
/apark = Admin car park.
/asellcar = Admin sell car.
/v sellto = Sell's the car to another player.
/accept = Accept's the current car sell.
/cancel = Cancel's the current car sell.
added in v2.3
/v locate(1-3) = Locate your car and place a checkpoint on minimap.
/v tow(1-3) = Tow your car to your last parked location.
WARNING!!!
To make this FS work you shold do exactly:
Place this in your gamemode, or implement.
pawn Код:
public OnGameModeExit()
{
SendRconCommand("unloadfs carownership");
return 1;
}
//add this to the end of OnGameModeInit
SendRconCommand("loadfs carownership");
1: Another car ownership.
2: Dynamic Vehicle System.
Now.
You shold count all your cars inside your gamemode something like:
AddStaticVehicle or CreateVehicle.
EX:
pawn Код:
//-------------------------------------------------------------------------------------------
AddStaticVehicleEx(596,2779.3843,-2434.2644,13.3568,88.5203, 44, 86, 30000); // Army police 1
AddStaticVehicleEx(596,2779.4299,-2439.7708,13.3572,88.1692,44,86,30000); // Army police 2
AddStaticVehicleEx(596,2779.1882,-2471.9214,13.3576,86.6550,44,86,30000); // Army police 3
AddStaticVehicleEx(596,2779.1497,-2477.8547,13.3590,86.9500,44,86,30000); // Army police 4
AddStaticVehicleEx(432,2791.3584,-2494.2971,13.6588,89.3376,43,0,30000); // Army tank 5
AddStaticVehicleEx(470,2792.0173,-2455.8245,14.0688,90,43,0,30000); // Army patriot 6
AddStaticVehicleEx(470,2793.1680,-2418.1855,13.6259,88.3914,-1, -1, 30000); // Patriot 7
AddStaticVehicleEx(470,2785.0979,-2417.6987,13.6273,87.4559, -1, -1, 30000); //Patriot 8
AddStaticVehicleEx(433,2781.4146,-2455.5208,14.0714,90,43,0,30000); // Army truck 9
AddStaticVehicleEx(430,2698.8132,-2311.0671,-0.2161,87.3657,-1, -1, 30000); // Army boat 10
AddStaticVehicleEx(430,2722.9766,-2311.2756,-0.3360,89.2799,-1, -1, 30000); // Army boat 11
pawn Код:
new carsonserver = 290;
PS: if you have for ex 500 cars you should put 501.
EX:
pawn Код:
new carsonserver = 501;
Bugs:
I dind't found any.
If you find some post them here.
DOWNLOAD LINKS v2.3:
V2.3 Download MegaUpload
V2.3 Download SendSpace
V2.3 Download SolidFiles
DOWNLOAD LINKS:
Download MegaUpload
Download SendSpace
Download SolidFiles
PasteBin here
Hope you like it.