Adding Cars
#1

I make more cars but when i add then it say that im stealing hospital cars... How i make new id for then? (Using LARP)
Reply
#2

Ask in the larp topic
Reply
#3

Quote:
Originally Posted by dice7
Ask in the larp topic
You cant answer ? LARP Topic is very slow moving
Reply
#4

Mate,i will help you.

Search for :
Код:
public IsAnAmbulance(carid)
then you will see this:
Код:
public IsAnAmbulance(carid)
{
	if((carid >= 52) && (carid <= 55))
	{
		return 1;
	}
	return 0;
}
and that numbers are the cars counted from 1 to somenumber.
You must just increase that number depending on the number you added.
It is like you added 2 more cars under 52 then it would be

Код:
public IsAnAmbulance(carid)
{
	if((carid >= 54) && (carid <= 57))
	{
		return 1;
	}
	return 0;
}
it is simple.It is the same trick for Stealing a police car,you are not a taxi driver and things like that.
IsAboat...

-Naruto4
Reply
#5

or if you don't want like every time when you add a new Paramedic Car / Firetruck , use the native function GetVehicleModel

eg:

pawn Код:
public IsAnAmbulance(car)
{
  new model = GetVehicleModel(car);
  if(model == 416 || model == 407 || model == 544) return true;
  return false;
}
Reply
#6

i didnt know that
Thanks man
Reply
#7

i but cars to cops. the id-s are 54 to 60
btw how i add gangs cars?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)