Simple CarOwnership -
Im_BanK - 27.05.2011
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.
pawn Код:
public OnGameModeExit()
{
SendRconCommand("unloadfs carownership");
return 1;
}
//add this to the end of OnGameModeInit
SendRconCommand("loadfs carownership");
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:
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
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.
Re: Simple CarOwnership -
System64 - 27.05.2011
nice FS
I make stunt mod but I do RP i will use this ownership
(Bad english
)
Re: Simple CarOwnership -
Defrago - 27.05.2011
MegaUpload mirror broken
Re: Simple CarOwnership -
Im_BanK - 27.05.2011
Quote:
Originally Posted by Defrago
MegaUpload mirror broken
|
Fixed
Re: Simple CarOwnership -
Lazy_Duck - 27.05.2011
nice but make /vcall command
Re: Simple CarOwnership -
Phanto90 - 27.05.2011
Don't understand this:
Код:
new carsonserver = 290;
Why creating a variable??
Quote:
after you counted all your cars, go inside the FS and modify:
|
Ah yeah, who's the crazy man that counts the vehicle on the server?? Insane!
Thinks that someone can create vehicles while he is in-game... So the variable's value would not be correct!
Dont know actually for what you use carsonserver, maybe to size an array... just use MAX_VEHICLES if that's the case
And please use pastebin, I don't want to download just to see the code
Re: Simple CarOwnership -
Im_BanK - 27.05.2011
Quote:
Originally Posted by Phanto90
Don't understand this:
Код:
new carsonserver = 290;
Why creating a variable??
Ah yeah, who's the crazy man that counts the vehicle on the server?? Insane!
Thinks that someone can create vehicles while he is in-game... So the variable's value would not be correct!
Dont know actually for what you use carsonserver, maybe to size an array... just use MAX_VEHICLES if that's the case
And please use pastebin, I don't want to download just to see the code
|
i used that for the FS to know from where to start writing the ownable cars.
for ex: the last car in GM is 200 then the FS should start writing the car to 201 right?
if i didn't use carsonserver the FS will create cars from what point? 0 right? then all the Faction cars for ex will be fckt up.
And if is that hard for you to find all the addstaticvehicle or createvehicle and copy them intro a blank .pwn file that's your problem not mine.
Copy them and on the left you will see the number ...
Re: Simple CarOwnership -
Lazy_Duck - 27.05.2011
tested and works perfectly
Код HTML:
if (strcmp(cmd, "/vcall1", true) == 0)
{
if(IsPlayerConnected(playerid))
{
new carkey = PlayerInfo[playerid][pPcarkey];
if (PlayerInfo[playerid][pPcarkey] != -1)
{
new Float:cx, Float:cy, Float:cz;
GetPlayerPos(playerid, cx, cy, cz);
SetVehiclePos(carkey, cx, cy, cz);
}
}
return 1;
}
if (strcmp(cmd, "/vcall2", true) == 0)
{
if(IsPlayerConnected(playerid))
{
new carkey2 = PlayerInfo[playerid][pPcarkey2];
if (PlayerInfo[playerid][pPcarkey2] != -1)
{
new Float:cx, Float:cy, Float:cz;
GetPlayerPos(playerid, cx, cy, cz);
SetVehiclePos(carkey2, cx, cy, cz);
}
}
return 1;
}
if (strcmp(cmd, "/vcall3", true) == 0)
{
if(IsPlayerConnected(playerid))
{
new carkey3 = PlayerInfo[playerid][pPcarkey2];
if (PlayerInfo[playerid][pPcarkey3] != -1)
{
new Float:cx, Float:cy, Float:cz;
GetPlayerPos(playerid, cx, cy, cz);
SetVehiclePos(carkey3, cx, cy, cz);
}
}
return 1;
}
Re: Simple CarOwnership -
Im_BanK - 28.05.2011
Car Ownership v2.3.
Commands!!!
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.
DOWNLOAD LINKS v2.3:
V2.3 Download MegaUpload
V2.3 Download SendSpace
V2.3 Download SolidFiles
Hope you will like it!
Rate and Comment.
Re: Simple CarOwnership -
BASITJALIL - 28.05.2011
Its tooo simple
Re: Simple CarOwnership -
Im_BanK - 28.05.2011
Quote:
Originally Posted by BASITJALIL
Its tooo simple
|
Like i posted:
Simple CarOwnership
Re: Simple CarOwnership -
kadaradam - 28.05.2011
bug:
1.create car with /acreatecar
2.buy the created car and parked it
3.Restart your server
4.When you restarted,go to your car and enter!
5.The server say:,,You don't have a vehicle key of this vehicle"
This is a bug,please fix it!
Re: Simple CarOwnership -
Im_BanK - 28.05.2011
Quote:
Originally Posted by ps3home
bug:
1.create car with /acreatecar
2.buy the created car and parked it
3.Restart your server
4.When you restarted,go to your car and enter!
5.The server say:,,You don't have a vehicle key of this vehicle"
This is a bug,please fix it!
|
Do you use teamviewer? if you do PM me with ID and PASSWORD il help you
Re: Simple CarOwnership -
kadaradam - 28.05.2011
no,wait,i download it,and create account
Re: Simple CarOwnership -
cipperu - 28.05.2011
ma poti ajuta sa-l instalez ?
Re: Simple CarOwnership -
kadaradam - 29.05.2011
please help me
Re: Simple CarOwnership -
Swiftz - 29.05.2011
Quote:
Originally Posted by BASITJALIL
Its tooo simple
|
Stop being an asshole, its pretty good except some inefficiency (slow) and wait
This is just a copypasta taken out from useless gf edits like GTA roleplay and it's edits, i bet it
Re: Simple CarOwnership -
The Taker - 13.06.2011
this thing dont even work
Re: Simple CarOwnership -
Iphone1234g - 13.06.2011
I am downloading this awesome script now i really need this for my GameMode! kiss u!
Re: Simple CarOwnership -
TheArcher - 13.06.2011
I think this is copied from LA:RP