21.01.2010, 15:48
Quote:
Originally Posted by svorpyx
You mean that the for example "SF Copcar" is only enterable for police officers?
|
Quote:
Originally Posted by SaYrOn
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); Thats the SF Copcar, Rather than naming each vehicle i have on my server Then: Код:
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 |
Is there a way to do it that way, Rather than naming all my vehicles,