How to do this like roleplay
#3

Each car in your script has itown ID, you can make a small check it it's a copcar for example, easiest way to do it:

At the top of the script:
Код:
new copcar1,copcar2;
forward IsACopCar(vehicleid);
Then:
Код:
copcar1 = AddStaticVehicle(model,coords,colours);
copcar2 = AddStaticVehicle(models,coords,colours);
Код:
public IsACopCar(vehicleid)
{
   if(vehicleid == copcar1 || vehicleid == copcar2)
   {
      return 1;
   }
   else return 0;
}
That is the check, you can put IsACopCar under "OnPlayerEnterVehicle" for example.

Hope that helped
Reply


Messages In This Thread
How to do this like roleplay - by JoeDaDude - 21.01.2010, 14:54
Re: How to do this like roleplay - by svorpyx - 21.01.2010, 15:24
Re: How to do this like roleplay - by SaYrOn - 21.01.2010, 15:38
Re: How to do this like roleplay - by JoeDaDude - 21.01.2010, 15:48
Re: How to do this like roleplay - by SaYrOn - 21.01.2010, 16:05
Re: How to do this like roleplay - by JoeDaDude - 21.01.2010, 16:16
Re: How to do this like roleplay - by RyDeR` - 21.01.2010, 16:18
Re: How to do this like roleplay - by JoeDaDude - 21.01.2010, 16:20
Re: How to do this like roleplay - by NewYorkRP - 22.01.2010, 16:09

Forum Jump:


Users browsing this thread: 2 Guest(s)