AddStaticVehicle
#1

can somebody tell me why when i addstaticvehicle in my server ,and when i enter in car (AddStaticVehicle) i take wanted for "stealing a police vehicle"? I can not find out this problem,pls somebody help me...

Reply
#2

I take it your editing the godfather script? I had this problem about a year and half ago, but it's been that long I can't remember what the problem was or how i solved it
Reply
#3

yes ,gm godfather
i nees to rezolve this problem becouse i can`t finish a job where i need vehicles
Reply
#4

its cuase its useing car ids so everytime u add a car it changes id use this code for the ids it should fix the porb just chnage the model ids to the cop cars ur using like 596 597 and 598 are cop cars hope this helps


Код:
public IsABoat(carid)
{
  new carmodel = GetVehicleModel(carid);
  
	if(carmodel == 430 || carmodel == 453)
	{
		return 1;
	}
	return 0;
}

public IsAPlane(carid)
{
  new carmodel = GetVehicleModel(carid);
  
	if(carmodel == 487 || carmodel == 425 || carmodel == 488 || carmodel == 497 || carmodel == 593 || carmodel == 513 )
	{
		return 1;
	}
	return 0;
}

public IsACopCar(carid)
{
  new carmodel = GetVehicleModel(carid);
	if(carmodel == 425 || carmodel == 432 || carmodel == 433 || carmodel == 470 || carmodel == 490 || carmodel == 497 || carmodel == 596
	 || carmodel == 597 || carmodel == 598 || carmodel == 601 || carmodel == 523 || carmodel == 430 || carmodel == 427 || carmodel == 528)
	{
		return 1;
	}
	return 0;
}

public IsAnAmbulance(carid)
{
  new carmodel = GetVehicleModel(carid);
	if(carmodel == 416 || carmodel == 599)
	{
		return 1;
	}
	return 0;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)