Hallo Leute oben die Frage wie ich die Farbe der Autos die im Autohaus stehen und beim Spawn kommen Weiß oder so mache hier der Pawn Code:
enum ahCar
{
Typ,
Float:X,
Float:Y,
Float:Z,
Float:Rotation,
Status,
Lock,
Carid,
Paintjob,
Farbe1,
Farbe2,
mod1,
mod2,
mod3,
mod4,
mod5,
mod6,
mod7,
mod8,
mod9,
mod10,
mod11,
mod12,
mod13,
mod14,
mod15,
mod16,
mod17,
};
new Carlist[MAX_PLAYERS][ahCar];
enum ahSpawn
{
Float:X,
Float:Y,
Float:Z,
Float:Rotation,
Farbe1,
Farbe2,
};
new Autospawns[3][ahSpawn] = {
{-1990.3116,256.7853,34.7590,271.3362,1,1},//WangCars
{743.3328,-1344.1455,13.2989,270.2528,1,1},//Billigautohaus
{-1634.5931,1196.2853,7.1875,256.5849,1,1}//Ottos
};
enum ahModell
{
Name[128],
Autohaus,
Modelid,
Carid,
Preis,
Reparatur,
Float:X,
Float:Y,
Float:Z,
Float:Rotation,
Farbe1,
Farbe2,
};
new Kaufliste[45][ahModell] = {
{"Cheetah",2,415,1,400000,40000,-1653.7113,1212.3820,20.9288,41.3721,1,1},//Ottos
{"Banshee",2,429,1,100000,10000,-1659.0656,1205.6851,20.8359,41.6773,1,1},//Ottos
{"Sultan",2,560,1,2500000,25000,-1647.4949,1205.8306,20.8600,41.1916,1,1},//Ottos
{"Elegy",2,562,1,2500000,25000,-1653.8823,1206.3394,20.8123,42.1967,1,1},//Ottos
{"Bullet",2,541,1,120000,3000,-1664.6187,1224.1819,20.7813,200.2194,1,1},//Ottos
{"Turismo",2,451,1,16000000,160000,-1667.8508,1204.5337,20.8625,270.2015,1,1},//Ottos
{"Infernus",2,411,1,18000000,180000,-1681.4181,1209.1088,20.8833,226.3404,1,1},//Ottos
{"Super GT",2,506,1,1700000,170000,-1677.6606,1209.6753,13.2368,232.6764,1,1},//Ottos
{"Jester",2,559,1,6000000,30000,-1648.0800,1206.6381,13.2475,39.2287,1,1},//Ottos
{"Nrg-500",2,522,1,15000000,3000,-1657.2261,1211.2939,13.2394,106.7334,1,1},//Ottos
{"Buffalo",2,402,1,10000000,30000,-1663.2734,1222.8125,13.2500,241.3098,1,1},//Ottos
{"Phoenix",2,603,1,600000,6000,-1668.3252,1207.2729,6.9818,321.7266,1,1},//Ottos
{"Landstalker",1,400,1,50000,7000,783.7986,-1381.3740,13.7759,91.8838,1,1},//BilligCars1
{"Pony",1,413,1,150000,6000,783.7125,-1377.5649,13.7145,93.3882,1,1},//BilligCars2
{"Bobcat",1,422,1,150000,6000,783.4233,-1374.2266,13.5748,95.3007,1,1},//BilligCars3
{"Walton",1,478,1,150000,6000,783.0467,-1367.0795,13.5329,98.0973,1,1},//BilligCars4
{"Club",1,589,1,35000,6000,783.5323,-1370.6439,13.5445,97.4003,1,1},//BilligCars5
{"Rancher",1,489,1,60000,6000,782.7017,-1362.9673,13.6815,98.6735,1,1},//BilligCars6
{"Mesa",1,500,1,25000,3000,1741.4919,1975.2114,10.9406,270.1144,1,1},//BilligCars7
{"Clover",1,542,1,5000,500,783.7271,-1354.6265,13.2835,100.7509,1,1},//BilligCars8
{"Sadler",1,543,1,30000,500,783.0004,-1350.7267,13.3641,103.3728,1,1},//BilligCars9
{"Yosemite",1,554,1,150000,6000,782.7932,-1346.7649,13.6248,105.0920,1,1},//BilligCars10
{"Huntley",1,579,1,200000,6000,782.7795,-1341.7456,13.4718,108.7884,1,1},//BilligCars11
{"Picador",1,600,1,200000,2000,783.1000,-1336.3964,13.2561,110.1257,1,1},//BilligCars12
{"Glendale Shit",1,604,1,2000,200,770.9219,-1333.9500,13.2833,182.1113,1,1},//BilligCars13
{"Sadler Shit",1,605,1,2500,250,766.2501,-1334.2045,13.3638,184.6203,1,1},//BilligCars14
{"Bravura",1,401,1,10000,1000,761.8510,-1333.5302,13.3240,186.6080,1,1},//BilligCars15
{"Manana",1,410,1,200000,6000,758.1130,-1333.6486,13.1951,191.4382,1,1},//BilligCars16
{"Moonbeam",1,418,1,200000,6000,752.9655,-1334.1335,13.6343,194.2864,1,1},//BilligCars17
{"Previon",1,436,1,200000,6000,748.5705,-1334.9202,13.3072,194.2546,1,1},//BilligCars18
{"PCJ-600",1,461,1,40000,4000,760.2179,-1378.1654,13.2069,273.0470,1,1},//BilligBike1
{"Faggio",1,462,1,10000,1000,760.7037,-1373.7533,13.1612,282.0853,1,1},//BilligBike2
{"Freeway",1,463,1,20000,2000,760.6012,-1370.6869,13.0578,286.3306,1,1},//BilligBike3
{"Sanchez",1,468,1,20000,2000,760.3768,-1367.1364,13.1837,283.0223,1,1},//BilligBike4
{"Quad",1,471,1,30000,3000,760.3065,-1363.6147,13.0003,285.1873,1,1},//BilligBike5
{"FCR-900",1,521,1,45000,4500,760.1493,-1359.9988,13.0830,287.43,1,1},//BilligBike6
{"Patroit",0,470,1,7500000,75000,-1948.4995,255.5272,35.4619,89.8053,1,1},//WangCars1
{"ZR-350",0,477,1,850000,8500,-1948.0942,261.6151,35.2252,88.0557,1,1},//WangCars2
{"Comet",0,480,1,60000,6000,-1948.4146,268.3039,35.2476,91.5560,1,1},//WangCars3
{"Vincent",0,540,1,550000,5500,-1948.7213,272.9785,35.3290,89.0764,1,1},//WangCars4
{"Sunrise",0,550,1,600000,6000,-1954.4005,301.4303,35.2850,159.5649,1,1},//WangCars5
{"Windsor",0,555,1,350000,3500,-1958.6940,302.6392,35.1551,161.8100,1,1},//WangCars6
{"Flash",0,565,1,2500000,25000,-1955.1818,257.4017,40.6719,50.6737,1,1},//WangCars7
{"Stratum",0,561,1,2500000,25000,-1950.0410,257.3871,40.8620,37.7923,1,1},//WangCars8
{"Uranus",0,558,1,2500000,25000,-1945.9426,259.9632,40.6786,43.2260,1,1}//WangCars9
};
Ich hoffe das hilft.