24.02.2009, 13:34
I script my own RealLife now...
I need a code for defines the vehicles
also motobikes, boats, bikes, and planes is that right?
sorry but the public functions are german and sorry for my bad english iam come from germany
I need a code for defines the vehicles
also motobikes, boats, bikes, and planes is that right?
Код:
public IstEinFahrrad(carid) //Bike { new fahrrad = GetVehicleModel(carid); if(fahrrad==509||fahrrad==481||fahrrad==510) { return 1; } return 0; } public IstEinRoller(carid) //Motoroller { new roller = GetVehicleModel(carid); if(roller==462||roller==448) { return 1; } return 0; } public IstEinQuad(carid) //Quad { new quad = GetVehicleModel(carid); if(quad==471) { return 1; } return 0; } public IstEinMotorad(carid) //Motorbike { new motorad = GetVehicleModel(carid); if(motorad==581||motorad==521||motorad==463||motorad==522||motorad==461||motorad==468||motorad==586) { return 1; } return 0; } public IstEinFlugzeug(carid) //Plane { new flugzeug = GetVehicleModel(carid); if(flugzeug==592||flugzeug==577||flugzeug==511||flugzeug==512||flugzeug==593||flugzeug==520||flugzeug==553||flugzeug==476||flugzeug==519||flugzeug==460||flugzeug==513) { return 1; } return 0; } public IstEinHelikopter(carid) //Helikopter { new helikopter = GetVehicleModel(carid); if(helikopter==548||helikopter==425||helikopter==417||helikopter==487||helikopter==488||helikopter==497||helikopter==563||helikopter==447||helikopter==469) { return 1; } return 0; } public IstEinBoot(carid) //Boat { new boot = GetVehicleModel(carid); if(boot==472||boot==473||boot==493||boot==595||boot==484||boot==430||boot==453||boot==452||boot==446||boot==454) { return 1; } return 0; } public IstEinAuto(carid) //Car { new fahrrad = CallLocalFunction("IstEinFahrrad","i"); new roller = CallLocalFunction("IstEinRoller","i"); new quad = CallLocalFunction("IstEinQuad","i"); new motorad = CallLocalFunction("IstEinMotorad","i"); new flugzeug = CallLocalFunction("IstEinFlugzeug","i"); new helikopter = CallLocalFunction("IstEinHelikopter","i"); new boot = CallLocalFunction("IstEinBoot","i"); if(!boot && !helikopter && !flugzeug && !quad && !motorad && !roller && !fahrrad) { return 1; } return 0; }