IsInCopCar
#1

Hello


This is a easy thing, but I've forgotten it. haven't scripted in a while.


I don' remember how to check which car is a cop car
Код:
public IsACopCar(///????///)
{
	///???///
	{
		return 1;
	}
	return 0;
}
how do I find out that?
Reply
#2

Код:
forward IsACopCar(vehicleid);

Код:
public IsACopCar(vehicleid)
{
	if( GetVehicleModel(vehicleid) == 596 || GetVehicleModel(vehicleid) == 595 || GetVehicleModel(vehicleid) == 597 ) {
		return 1;
	}
	return 0;
}
Hopefully this helped
Reply
#3

Here is the cop and fbi cars + the predator boat + police maverick
pawn Код:
forward IsInCopCar(vehicleid);
public IsInCopCar(vehicleid)
{
  switch(GetVehicleModel(vehicleid))
  {
    case 427, 430, 490, 497, 528,
    596, 597, 598, 599, 601:
    {
      return 1;
    }
  }
  return 0;
}
Reply
#4

Quote:
Originally Posted by [LSR
State_Trooper ]
Код:
forward IsACopCar(vehicleid);

Код:
public IsACopCar(vehicleid)
{
	if( GetVehicleModel(vehicleid) == 596 || GetVehicleModel(vehicleid) == 595 || GetVehicleModel(vehicleid) == 597 ) {
		return 1;
	}
	return 0;
}
THANKS A BUNCH!

Hopefully this helped
Reply
#5

Glad it worked for you. if u need any more help, add me on msn: bradley@policecarmods.com Infact, anyone else who needs help also add me!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)