21.01.2010, 15:38
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:
Then:
That is the check, you can put IsACopCar under "OnPlayerEnterVehicle" for example.
Hope that helped
At the top of the script:
Код:
new copcar1,copcar2; forward IsACopCar(vehicleid);
Код:
copcar1 = AddStaticVehicle(model,coords,colours); copcar2 = AddStaticVehicle(models,coords,colours);
Код:
public IsACopCar(vehicleid) { if(vehicleid == copcar1 || vehicleid == copcar2) { return 1; } else return 0; }
Hope that helped