Error/Warning : Pitanje
Server log : //
Slike: //
Pawn FIle : //
Pitanje: Kako da dodam random spawnanje vozila ali ono isto kao u offline gta san andreas na serveru..
Primer sam vidio od CrazyBob's Cops And Robbers..
I interesuje me..
Takodjer:
-Ima li negde neki skup koordinata gde se auta spawnaju u offline gta SA ?
O spawnanju auta
537
pregleda
4
postova
19. Apr. 2020.
Imas raznih nacina, najlaksi je da sam uzmes koordinate po mapi gde ce ti se vozila spawnati, stavis u array i samo ih spawnas sve preko for ili foreach
Mozes koristiti MapAndreas ili ColAndreas, ali ne bih ti to preporucio zato sto si pocetnik, pre svega..
Mozes koristiti MapAndreas ili ColAndreas, ali ne bih ti to preporucio zato sto si pocetnik, pre svega..
19. Apr. 2020.
Imaš u grandlarc modu primjer.
public OnGameModeInit( )
{
// SPECIAL
total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/trains.txt");
total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/pilots.txt");
// LAS VENTURAS
total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/lv_law.txt");
total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/lv_airport.txt");
total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/lv_gen.txt");
// SAN FIERRO
total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/sf_law.txt");
total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/sf_airport.txt");
total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/sf_gen.txt");
// LOS SANTOS
total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/ls_law.txt");
total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/ls_airport.txt");
total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/ls_gen_inner.txt");
total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/ls_gen_outer.txt");
// OTHER AREAS
total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/whetstone.txt");
total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/bone.txt");
total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/flint.txt");
total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/tierra.txt");
total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/red_county.txt");
printf( "Total vehicles from files: [ %d ]", total_vehicles_from_files );
return (1);
} 19. Apr. 2020.
V01D wrote on April 19, 2020, 6:47 pm:
Imas raznih nacina, najlaksi je da sam uzmes koordinate po mapi gde ce ti se vozila spawnati, stavis u array i samo ih spawnas sve preko for ili foreach
Mozes koristiti MapAndreas ili ColAndreas, ali ne bih ti to preporucio zato sto si pocetnik, pre svega..
Mozes koristiti MapAndreas ili ColAndreas, ali ne bih ti to preporucio zato sto si pocetnik, pre svega..
Spooky. wrote on April 19, 2020, 6:58 pm:
Imaš u grandlarc modu primjer.
public OnGameModeInit( )
{
// SPECIAL
total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/trains.txt");
total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/pilots.txt");
// LAS VENTURAS
total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/lv_law.txt");
total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/lv_airport.txt");
total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/lv_gen.txt");
// SAN FIERRO
total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/sf_law.txt");
total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/sf_airport.txt");
total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/sf_gen.txt");
// LOS SANTOS
total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/ls_law.txt");
total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/ls_airport.txt");
total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/ls_gen_inner.txt");
total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/ls_gen_outer.txt");
// OTHER AREAS
total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/whetstone.txt");
total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/bone.txt");
total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/flint.txt");
total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/tierra.txt");
total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/red_county.txt");
printf( "Total vehicles from files: [ %d ]", total_vehicles_from_files );
return (1);
} Imam ovo
new Float:RandomCarSpawns[][] =
{
{728.1595,-1495.2687,-0.4906,179.7909,1,5} ,
{720.7040,-1633.3224,0.1487,177.6009,26,26} ,
{720.5267,-1699.9827,0.1866,358.9251,26,26} ,
{764.7679,-1660.5485,4.2160,94.0819,12,12},
{688.0235,-1600.1552,13.7216,359.7577,58,8} ,
{594.6932,-1519.6713,14.8586,178.9838,68,76} ,
{601.2115,-1519.8091,14.8971,359.8546,101,1} ,
{648.1077,-1507.8370,14.7836,88.3481,35,35} ,
{729.7592,-1433.3433,13.2151,90.2927,13,13} ,
{665.4387,-1421.5520,14.3497,1.6522,7,7},
{587.3435,-1499.5959,15.0621,273.6347,6,6} ,
{691.4462,-1570.2456,14.3358,179.2636,91,1} ,
{489.1148,-1514.9581,20.0516,186.2239,46,46} ,
{494.3372,-1604.7161,18.2000,275.6070,60,1} ,
{259.4689,-1597.9203,33.1167,299.1694,69,1} ,
{262.3868,-1603.2013,33.0642,323.2319,2,2} ,
{258.0661,-1591.6113,33.1217,275.3944,36,36} ,
{867.4957,-1285.9368,13.8859,357.4155,1,1} ,
{844.4999,-1197.9865,16.6038,0.3980,2,1} ,
{880.8410,-1199.7491,16.6031,357.7022,21,108} ,
{914.7440,-1199.8364,16.6032,359.8655,106,56} ,
{920.4453,-1290.5063,13.3508,118.6505,121,14} ,
{863.2733,-1375.0151,13.3187,85.7265,32,92} ,
{903.8953,-1454.9287,12.8651,270.7864,8,17} ,
{881.5562,-1453.8588,13.3618,271.8305,99,93} ,
{809.9615,-1448.9109,12.9680,87.2106,35,54} ,
{810.5452,-1464.3678,12.7191,85.7123,134,97} ,
{821.6033,-1473.7249,12.5756,357.5008,54,120} ,
{1031.1113,-1446.3105,13.1411,59.0580,67,86} ,
{1005.0084,-1461.3424,13.6427,183.0261,119,119} ,
{990.1287,-1354.9878,12.9125,285.7227,65,6} ,
{991.3929,-1345.2102,13.1759,271.1148,123,108} ,
{990.5985,-1306.8129,13.5204,179.0488,24,6} ,
{1002.5063,-1306.5654,13.1866,359.6424,37,0} ,
{981.5054,-1306.6899,13.1630,181.0135,71,18} ,
{979.2278,-1258.1351,16.8071,182.5786,24,1} ,
{955.9268,-1184.0712,16.6498,269.9031,30,31} ,
{955.8333,-1190.2795,16.6425,270.2728,75,39} ,
{956.0022,-1199.3633,17.1270,268.5538,20,20} ,
{956.3898,-1193.4253,16.6297,89.6432,46,46} ,
{1085.8342,-1199.3883,17.7945,90.5839,93,64} ,
{1097.0354,-1218.1705,17.5471,356.6483,45,92} ,
{1084.2866,-1232.2461,15.3945,243.6654,61,1} ,
{1083.9337,-1235.0449,15.4088,243.8919,75,1} ,
{1083.7941,-1238.1573,15.4110,243.1097,79,1} ,
{1109.0310,-1225.8809,15.6987,181.5343,75,1} ,
{1000.3081,-1084.5488,23.7069,179.6207,30,1} ,
{1015.8254,-1083.9113,23.5711,0.6381,119,113} ,
{1032.2993,-1082.4255,23.4136,166.6669,35,27} ,
{1003.6659,-1054.6088,30.6946,3.0438,122,102} ,
{1070.9109,-1102.3247,24.4439,270.7971,41,81} ,
{1137.6492,-1025.5586,31.5121,177.9917,67,6} ,
{1131.7341,-1010.0580,29.4899,95.0937,40,1} ,
{1205.2384,-977.0176,43.0742,179.7537,58,1} ,
{1227.2596,-974.1713,43.2139,180.2966,30,96} ,
{1110.5709,-1331.4204,13.1385,0.6026,43,1} ,
{989.3703,-1589.3812,13.0903,21.5606,66,1} ,
{1061.2451,-1665.2649,13.4966,91.9120,32,92} ,
{1136.5767,-1695.5199,13.6956,88.9354,75,1} ,
{1137.1466,-1700.1902,13.3869,87.9396,132,112} ,
{1280.4908,-1816.1259,13.0556,270.4623,133,56} ,
{1250.2468,-1835.0884,13.5047,180.4024,85,85} ,
{1196.9360,-1829.6980,13.1197,269.7545,90,9} ,
{1280.9364,-1833.0607,13.0418,90.8050,46,126} ,
{1267.0612,-1795.2074,13.0702,0.6533,102,24} ,
{1281.6627,-1805.1254,12.9241,62.4969,53,53} ,
{1238.0167,-1835.2385,13.2008,177.5310,40,96} ,
{1423.8417,-1845.0616,13.4772,270.4685,109,109} ,
{1536.6632,-1846.7765,13.2712,0.8185,3,87} ,
{1614.0917,-1893.9027,13.3521,357.9483,102,80} ,
{1796.2775,-1933.2837,13.1180,180.4499,113,78} ,
{1776.1965,-1917.6884,13.1976,90.7850,39,1} ,
{1776.1498,-1907.3949,13.4788,271.3831,101,1} ,
{1804.1429,-1909.4020,13.3328,269.6684,10,10} ,
{1804.4889,-1919.3353,13.1556,269.8831,110,1} ,
{1785.9353,-1933.2903,13.1750,0.8605,52,69} ,
{1776.2777,-1894.0770,12.9741,272.6132,15,15} ,
{1776.5122,-1899.9752,13.5071,87.3522,10,10} ,
{1791.3899,-1933.2008,13.5101,180.1195,118,118} ,
{1775.7963,-1912.6582,12.9720,269.4815,61,1} ,
{1775.7340,-1914.1243,12.9716,262.3925,75,1} ,
{1834.7808,-1871.9734,13.0925,179.2434,30,96} ,
{1836.6301,-1853.6381,13.1059,179.9886,20,20} ,
{1858.8854,-1875.5944,13.5724,180.1933,95,1} ,
{1900.5659,-1849.8379,13.2277,44.6102,94,63} ,
{1251.2297,-2042.1305,59.4474,180.0659,40,1} ,
{1244.8016,-2023.3499,59.4330,292.8341,92,3} ,
{1256.9205,-2009.4756,59.2126,0.8008,7,7} ,
{1277.8240,-2011.9354,58.4634,268.7320,7,79} ,
{1097.5217,-1763.8896,12.8933,267.4286,36,36} ,
{892.6356,-1668.8604,13.3544,179.2466,37,0} ,
{874.8234,-1658.4843,13.2514,181.7123,1,15} ,
{870.1176,-1676.6573,13.1183,186.2732,115,118} ,
{888.5651,-1679.1317,13.2628,357.5185,102,135} ,
{1671.5546,-1719.5422,20.2115,269.5804,132,108} ,
{1656.9489,-1695.5144,20.2285,358.9435,131,53} ,
{1671.9685,-1704.4779,20.2006,270.8929,66,72} ,
{1673.9683,-1713.0564,20.0617,67.1318,43,1}
};
new RandomVehicleModels = {
400, 401, 402, 404, 405, 410, 411, 412, 413, 415, 418, 419, 421,
424, 426, 429, 434, 436, 439, 445, 451, 461, 462, 463, 466, 467,
458, 471, 474, 475, 477, 478, 479, 480, 481, 482, 483, 489, 491,
492, 496, 500, 505, 506, 507, 509, 510, 516, 517, 518, 521, 526,
527, 529, 533, 534, 535, 536, 540, 541, 542, 543, 545, 546, 547,
549, 550, 551, 554, 555, 558, 559, 560, 561, 562, 565, 566, 567,
568, 575, 576, 579, 580, 581, 585, 586, 587, 589, 600, 602, 603
};Sta da stavim u OnGameModeInit?
Morate biti prijavljeni da biste odgovorili na ovu temu.
Prijava
