Recognize Car
#1

I spawned like 5 LV cop cars (19 and two ranchers (199). But they arent recognized as cop cars, how do I find out the ID to add them to this code?

Quote:

public IsACopCar(carid)
{
if((carid >= 16) && (carid <= 3)
{
return 1;
}
return 0;
}

Reply
#2

Put this instead of OnPlayerEnterVehicle

Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
  new string[48];
 	format(string, sizeof(string), "You entered vehicle: %d",vehicleid);
	SendClientMessage(playerid, 0xAAAA33AA, string);
  return 1;
}
When you enter a car, it gives you it`s id
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)