SA-MP Forums Archive
[Help] CARS SYSTEM. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [Help] CARS SYSTEM. (/showthread.php?tid=93632)



[Help] CARS SYSTEM. - Nakash - 26.08.2009

First of all,i am using GodFather mode,that means it has the /oldcar and /veh and everything..
Now,i am looking for a good cars system,i have looked everywhere..
I want the system to have a place where we can buy cars like /buyvehicle,
but i want the mod to create the car,not with a dealer.
I mean if you have like 40,000$ and you are at the Commerce,then you type /buyvehicle [Model]
It'll spawn you a new car,but i want the user to be able to /lock and /unlock it.
Is there a system ?

THANK YOU!


Re: [Help] CARS SYSTEM. - shady91 - 26.08.2009

hmm post this is to GF topic or download LA-RP another GF edit and copy there car system out


Re: [Help] CARS SYSTEM. - Nakash - 26.08.2009

Quote:
Originally Posted by Shady91
hmm post this is to GF topic or download LA-RP another GF edit and copy there car system out
I thought about this but it's not what i want.
I want the mod to spawn cars,without a dealership.
The problem is that /oldcar thing,when i define de cars (IsACopCar for example),
I can't add more cars because it'll lose the define or something like that.


Re: [Help] CARS SYSTEM. - shady91 - 26.08.2009

do you mean it mixes up cop car ids like say its set for cars from 1 to 30 are cop cars if you added 10 new cars infront of thoses cop cars it would be 10 to 40 so the id's go up..


Re: [Help] CARS SYSTEM. - Nakash - 26.08.2009

Quote:
Originally Posted by Shady91
do you mean it mixes up cop car ids like say its set for cars from 1 to 30 are cop cars if you added 10 new cars infront of thoses cop cars it would be 10 to 40 so the id's go up..
I meant if i definded for example the cop cars,it looks like this;
Quote:

public IsACopCar(carid)
{
if(carid==251||carid==252||carid==253)
{
return 1;
}
return 0;
}

now,when i add more cars it mixes up the other cars,the cop car can be 260 and more.
I want it to stay for the cops even if i add 20 cars.
there are something like 100 cars in my server,i have no power to define it again and again.
i hope you understand what i mean.
btw does anyone know lsrp? they have a good cars system,i think they built it by theirselves but
they can despawn car (/v park it) and it's gone until you /v get.
when you /v park and /v get i saw that your cars id is changed!
How did they do this ? thanks