Jump to content

pomoc RandomVeci


NeviemSkúšamPawno

Recommended Posts

čaute,

Skúšam pawno ale fakt som low v tom pawne a chcel by som sa opytať či by mi niekto nechcel helpnuť z jednym "zavodom" :D ak to tak mozem nazvat ehm...

Je to zatiaľ iba kostra taka rozpadnuta, ale chcel by som spraviť to že, ako spravím to aby proste tie objekty sa spawnuli v inom worlde ? a tie auta čo tam mam pridane tak vzdy ked da hráč /zavod1 tak sa na seba nakopia to chapem lebo vzdy ked hrac da ten prikaz tak proste sa tie objekty vytvoria aj spoločne z autami ale ako spravim to ze tie objekty hrač v svojom real worlde teda "0" worlde neuvidi ale oni tam budu stale ale napr. vo worlde 545 a ked sa hrač pripoji /zavod1 tak proste iba ho dohra a potom ho to portne naspat to naspat by som mozno vedel spraviť. ale robia mi problem tie objekty. Ale celkom ma napadla jedna myšlienka ze hráč da /zavod1 a hned ho to da do nejakeho vozidla to neviem tak pls help.

Kod pre ukazku:

 |
|
 |
\|/

 

CMD:zavod1(playerid,params[])
{

SetPlayerPos(playerid,835.9068,-2067.2805,12.8672);

SetPlayerVirtualWorld(playerid,545);
AddStaticVehicle(411,850.8638,-2073.9155,12.4391,108.1080,211,211); // Závod auto #1
AddStaticVehicle(411,822.7151,-2080.1833,12.4359,245.8311,211,211); // Závod auto #2
AddStaticVehicle(541,822.7036,-2088.6709,12.4351,249.8430,211,1); // Závod auto #3
AddStaticVehicle(541,850.2290,-2094.7412,12.4364,65.2214,211,1); // Závod #4

SetVehicleVirtualWorld(GetPlayerVehicleID(playerid),411);
SetVehicleVirtualWorld(GetPlayerVehicleID(playerid),411);
SetVehicleVirtualWorld(GetPlayerVehicleID(playerid),541);
SetVehicleVirtualWorld(GetPlayerVehicleID(playerid),541);
SetPlayerVirtualWorld(playerid,545);

CreateObject(6189, 836.44330, -2134.47559, -2.64063,   0.00000, 0.00000, 0.00000);
CreateObject(6189, 836.45209, -2265.24927, -2.64063,   0.00000, 0.00000, 0.00000);
CreateObject(6189, 836.55780, -2396.18652, -2.72060,   0.00000, 0.00000, 0.00000);
CreateObject(19646, 837.24719, -2465.67700, 13.84970,   -0.04000, 0.00000, 88.67990);
CreateObject(19646, 837.02008, -2475.34473, 13.84970,   -0.04000, 0.00000, 88.67990);
CreateObject(19646, 836.57227, -2495.09741, 13.84970,   -0.04000, 0.00000, 88.67990);
CreateObject(19646, 836.81146, -2485.29761, 13.84970,   -0.04000, 0.00000, 88.67990);
CreateObject(19646, 836.31763, -2505.10791, 13.84970,   -0.04000, 0.00000, 88.67990);
CreateObject(19646, 836.00024, -2514.96606, 13.84970,   -0.04000, 0.00000, 88.67990);
CreateObject(19646, 835.75488, -2525.05835, 13.84970,   -0.04000, 0.00000, 88.67990);
CreateObject(19646, 835.54364, -2535.09888, 13.84970,   -0.04000, 0.00000, 88.67990);
CreateObject(19646, 835.28534, -2545.03418, 13.84970,   -0.04000, 0.00000, 88.67990);
CreateObject(19646, 835.00201, -2554.92993, 13.84970,   -0.04000, 0.00000, 88.67990);
CreateObject(19646, 834.76099, -2564.88794, 13.84970,   -0.04000, 0.00000, 88.67990);
CreateObject(18983, 834.82349, -2617.85229, 15.90810,   0.00000, 0.00000, 0.00000);
CreateObject(18983, 834.85352, -2717.74512, 15.90810,   0.00000, 0.00000, 0.00000);
CreateObject(18983, 834.78857, -2817.38306, 15.90810,   0.00000, 0.00000, 0.00000);
CreateObject(18852, 834.87769, -2916.73291, 16.79790,   -91.00000, 0.00000, 0.00000);
CreateObject(18852, 834.61371, -3016.35889, 18.59790,   -90.92000, 0.00000, 0.00000);
CreateObject(18827, 834.39075, -3116.24927, 19.21270,   0.00000, 0.00000, 0.00000);
CreateObject(18827, 834.51990, -3216.22241, 19.21270,   0.00000, 0.00000, 0.00000);
CreateObject(18827, 834.27765, -3316.29077, 19.21270,   0.00000, 0.00000, 0.00000);
CreateObject(18827, 834.22461, -3416.18799, 19.21270,   0.00000, 0.00000, 0.00000);
CreateObject(18828, 689.02197, -3471.13184, 92.11960,   1.00000, 0.00000, 0.00000);
CreateObject(18836, 733.88464, -3493.26416, 169.73030,   0.00000, 0.00000, 0.00000);
CreateObject(18836, 733.93011, -3543.27100, 169.83430,   0.00000, 0.00000, 0.00000);
CreateObject(18836, 734.02972, -3593.23511, 169.83430,   0.00000, 0.00000, 0.00000);
CreateObject(18836, 734.05426, -3643.26001, 169.83430,   0.00000, 0.00000, 0.00000);
CreateObject(18836, 734.02289, -3693.17285, 169.83430,   0.00000, 0.00000, 0.00000);
CreateObject(18836, 734.02368, -3743.15210, 169.83430,   0.00000, 0.00000, 0.00000);
CreateObject(18809, 734.37390, -3793.12305, 169.44260,   89.99400, 0.00000, 0.00000);
CreateObject(18809, 734.38342, -3843.08765, 169.44260,   89.99400, 0.00000, 0.00000);
CreateObject(18809, 734.64764, -3893.08179, 169.44260,   89.99400, 0.00000, 0.00000);
CreateObject(18809, 734.79358, -3943.14258, 169.44260,   89.99400, 0.00000, 0.00000);
CreateObject(18809, 734.67316, -3993.14941, 169.44260,   89.99400, 0.00000, 0.00000);
CreateObject(18809, 734.70691, -4043.12891, 169.44260,   89.99400, 0.00000, 0.00000);
CreateObject(18809, 734.55310, -4092.96582, 169.44260,   89.99400, 0.00000, 0.00000);
CreateObject(18809, 734.28259, -4142.85498, 169.44260,   89.99400, 0.00000, 0.00000);
CreateObject(18809, 734.36591, -4192.75146, 169.44260,   89.99400, 0.00000, 0.00000);
CreateObject(18809, 734.19745, -4242.86182, 169.44260,   89.99400, 0.00000, 0.00000);
CreateObject(18853, 733.37878, -4316.26563, 167.38260,   0.00000, -81.00000, 89.00000);
CreateObject(19333, 732.63599, -4437.60059, 173.55299,   0.00000, 0.00000, 0.00000);
CreateObject(8355, 733.43188, -4524.12256, 197.62601,   0.00000, 0.00000, 0.00000);
CreateObject(8355, 733.37140, -4662.11035, 197.62601,   0.00000, 0.00000, 0.00000);
CreateObject(8355, 733.39935, -4800.18652, 197.62601,   0.00000, 0.00000, 0.00000);
CreateObject(18844, 740.54364, -4941.01563, 198.28169,   18.00000, -87.00000, -88.82005);
CreateObject(8355, 733.72479, -4932.60400, 197.62601,   0.00000, 181.00000, 0.00000);
CreateObject(18752, 729.49158, -4945.62891, 132.11099,   0.00000, 0.00000, 5.51990);
CreateObject(18793, 742.88757, -5037.96777, 197.30000,   15.00000, -1.00000, -88.00000);
CreateObject(18793, 745.29102, -5116.63867, 197.30000,   15.00000, -1.00000, -88.00000);
CreateObject(18750, 680.00043, -3476.68652, 103.77760,   87.00000, 0.00000, 87.36004);
CreateObject(18772, 745.74152, -5281.16260, 206.92999,   -3.00000, -14.00000, 0.00000);
CreateObject(18772, 745.83618, -5530.69287, 219.92999,   -3.00000, -14.00000, 0.00000);
CreateObject(18777, 766.23511, -5654.23779, 225.95410,   0.00000, 0.00000, -176.57953);
CreateObject(18843, 747.09039, -5728.36328, 253.85201,   -91.00000, 0.00000, 0.00000);
CreateObject(18846, 747.97369, -5696.29102, 248.90500,   178.00000, 0.00000, 0.00000);
CreateObject(18846, 748.22241, -5700.93164, 248.90500,   178.00000, 0.00000, 0.00000);
CreateObject(18846, 748.42456, -5705.67090, 248.90500,   178.00000, 0.00000, 0.00000);
CreateObject(18846, 748.06348, -5710.44971, 248.90500,   178.00000, 0.00000, 0.00000);
CreateObject(18846, 747.32697, -5715.16016, 248.90500,   178.00000, 0.00000, 0.00000);
CreateObject(18846, 746.47839, -5719.78418, 248.90500,   178.00000, 0.00000, 0.00000);
CreateObject(18846, 746.16705, -5724.12354, 248.90500,   178.00000, 0.00000, 0.00000);
CreateObject(18846, 747.13702, -5727.51221, 248.90500,   178.00000, 0.00000, 0.00000);
CreateObject(18846, 747.44855, -5732.23877, 248.90500,   178.00000, 0.00000, 0.00000);
CreateObject(18846, 747.81543, -5737.42725, 248.90500,   178.00000, 0.00000, 0.00000);
CreateObject(18846, 748.13892, -5742.95459, 248.90500,   178.00000, 0.00000, 0.00000);
CreateObject(18846, 748.23151, -5747.26123, 248.90500,   178.00000, 0.00000, 0.00000);
CreateObject(18846, 748.74091, -5751.60254, 248.90500,   178.00000, 0.00000, 0.00000);
CreateObject(18847, 741.52698, -5893.44580, 248.90500,   1.00000, 0.00000, -91.00000);
CreateObject(18846, 748.92944, -5760.08008, 248.90500,   178.00000, 0.00000, 0.00000);
CreateObject(18846, 748.81470, -5764.76709, 248.90500,   178.00000, 0.00000, 0.00000);
CreateObject(18846, 748.58966, -5769.25977, 248.90500,   178.00000, 0.00000, 0.00000);
CreateObject(18846, 748.58966, -5769.25977, 248.90500,   178.00000, 0.00000, 0.00000);
CreateObject(18846, 748.58966, -5769.25977, 248.90500,   178.00000, 0.00000, 0.00000);
CreateObject(18846, 747.99902, -5772.40039, 248.90500,   147.00000, 0.00000, 0.00000);
CreateObject(18847, 737.61768, -6133.23145, 248.90500,   1.00000, 0.00000, -91.00000);
CreateObject(18847, 733.36206, -6372.51221, 248.90500,   1.00000, 0.00000, -91.00000);
CreateObject(18998, 735.43280, -6587.96875, 237.95340,   -92.00000, -8.00000, -9.00000);
CreateObject(18999, 732.00226, -6787.76611, 241.31610,   36.00000, 90.00000, -91.00000);
CreateObject(19000, 726.99951, -6987.00146, 244.30690,   -92.00000, 0.00000, -2.10000);
CreateObject(18982, 723.42584, -7136.58008, 247.40520,   0.00000, 0.00000, 0.00000);
CreateObject(18983, 723.41711, -7236.57666, 247.40520,   0.00000, 0.00000, 0.00000);
CreateObject(18984, 723.39960, -7336.47217, 247.40520,   0.00000, 0.00000, 0.00000);
CreateObject(18985, 723.45227, -7436.28271, 247.40520,   0.00000, 0.00000, 0.00000);
CreateObject(18985, 723.47406, -7535.89844, 247.40520,   0.00000, 0.00000, 0.00000);
CreateObject(18985, 723.20795, -7635.59375, 247.40520,   0.00000, 0.00000, 0.00000);
CreateObject(18985, 723.15857, -7734.82520, 247.40520,   0.00000, 0.00000, 0.00000);
CreateObject(19129, 723.85760, -7794.75488, 242.37880,   0.00000, 0.00000, 0.00000);
CreateObject(19129, 723.85297, -7814.76660, 242.37880,   0.00000, 0.00000, 0.00000);
CreateObject(19129, 723.84955, -7834.50146, 242.37880,   0.00000, 0.00000, 0.00000);
CreateObject(19129, 723.87579, -7854.24951, 242.37880,   0.00000, 0.00000, 0.00000);
CreateObject(19129, 723.86493, -7874.03857, 242.37880,   0.00000, 0.00000, 0.00000);
CreateObject(19129, 723.81104, -7894.01758, 242.37880,   0.00000, 0.00000, 0.00000);
CreateObject(19634, 722.97778, -7914.10596, 242.43460,   -88.00000, 0.00000, 0.00000);
CreateObject(19634, 723.43182, -7934.06299, 241.43460,   -88.00000, 0.00000, 0.00000);
CreateObject(19634, 723.62170, -7954.36182, 240.43460,   -88.00000, 0.00000, 0.00000);
CreateObject(18783, 723.70172, -7974.44189, 232.43460,   0.00000, 0.00000, 0.00000);
CreateObject(18783, 723.72510, -7994.34180, 232.43460,   0.00000, 0.00000, 0.00000);
CreateObject(18783, 723.75726, -8014.45508, 232.43460,   0.00000, 0.00000, 0.00000);
CreateObject(18783, 723.63690, -8034.48486, 232.43460,   0.00000, 0.00000, 0.00000);
CreateObject(18761, 723.26813, -8044.08252, 234.92891,   0.00000, 0.00000, 0.00000);
CreateObject(18783, 723.57391, -8047.16943, 232.43460,   -92.00000, 4.00000, 1.82000);
CreateObject(19817, 732.47009, -4451.18457, 197.62613,   0.00000, 0.00000, 0.00000);
CreateObject(19817, 729.67773, -4451.49463, 197.62613,   0.00000, 0.00000, 0.00000);
CreateObject(19817, 735.07178, -4451.30371, 197.62613,   0.00000, 0.00000, 0.00000);
CreateObject(19633, 746.34650, -5666.24316, 249.44804,   0.00000, 0.00000, 0.00000);
CreateObject(19337, 751.44409, -5680.37061, 220.24609,   0.00000, 0.00000, 0.00000);

return 1;

}

Link to comment
Share on other sites

#include <a_samp>

#define VW_ZAVOD                545

enum objfloat
{
    o_modelid,
    Float:o_X,
    Float:o_Y,
    Float:o_Z,
    Float:o_rX,
    Float:o_rY,
    Float:o_rZ
}
new ObjZavod[][objfloat] = {
	{6189, 836.44330, -2134.47559, -2.64063,   0.00000, 0.00000, 0.00000},
	{6189, 836.45209, -2265.24927, -2.64063,   0.00000, 0.00000, 0.00000},
	{6189, 836.55780, -2396.18652, -2.72060,   0.00000, 0.00000, 0.00000},
	{19646, 837.24719, -2465.67700, 13.84970,   -0.04000, 0.00000, 88.67990},
	{19646, 837.02008, -2475.34473, 13.84970,   -0.04000, 0.00000, 88.67990},
	{19646, 836.57227, -2495.09741, 13.84970,   -0.04000, 0.00000, 88.67990},
	{19646, 836.81146, -2485.29761, 13.84970,   -0.04000, 0.00000, 88.67990},
	{19646, 836.31763, -2505.10791, 13.84970,   -0.04000, 0.00000, 88.67990},
	{19646, 836.00024, -2514.96606, 13.84970,   -0.04000, 0.00000, 88.67990},
	{19646, 835.75488, -2525.05835, 13.84970,   -0.04000, 0.00000, 88.67990},
	{19646, 835.54364, -2535.09888, 13.84970,   -0.04000, 0.00000, 88.67990},
	{19646, 835.28534, -2545.03418, 13.84970,   -0.04000, 0.00000, 88.67990},
	{19646, 835.00201, -2554.92993, 13.84970,   -0.04000, 0.00000, 88.67990},
	{19646, 834.76099, -2564.88794, 13.84970,   -0.04000, 0.00000, 88.67990},
	{18983, 834.82349, -2617.85229, 15.90810,   0.00000, 0.00000, 0.00000},
	{18983, 834.85352, -2717.74512, 15.90810,   0.00000, 0.00000, 0.00000},
	{18983, 834.78857, -2817.38306, 15.90810,   0.00000, 0.00000, 0.00000},
	{18852, 834.87769, -2916.73291, 16.79790,   -91.00000, 0.00000, 0.00000},
	{18852, 834.61371, -3016.35889, 18.59790,   -90.92000, 0.00000, 0.00000},
	{18827, 834.39075, -3116.24927, 19.21270,   0.00000, 0.00000, 0.00000},
	{18827, 834.51990, -3216.22241, 19.21270,   0.00000, 0.00000, 0.00000},
	{18827, 834.27765, -3316.29077, 19.21270,   0.00000, 0.00000, 0.00000},
	{18827, 834.22461, -3416.18799, 19.21270,   0.00000, 0.00000, 0.00000},
	{18828, 689.02197, -3471.13184, 92.11960,   1.00000, 0.00000, 0.00000},
	{18836, 733.88464, -3493.26416, 169.73030,   0.00000, 0.00000, 0.00000},
	{18836, 733.93011, -3543.27100, 169.83430,   0.00000, 0.00000, 0.00000},
	{18836, 734.02972, -3593.23511, 169.83430,   0.00000, 0.00000, 0.00000},
	{18836, 734.05426, -3643.26001, 169.83430,   0.00000, 0.00000, 0.00000},
	{18836, 734.02289, -3693.17285, 169.83430,   0.00000, 0.00000, 0.00000},
	{18836, 734.02368, -3743.15210, 169.83430,   0.00000, 0.00000, 0.00000},
	{18809, 734.37390, -3793.12305, 169.44260,   89.99400, 0.00000, 0.00000},
	{18809, 734.38342, -3843.08765, 169.44260,   89.99400, 0.00000, 0.00000},
	{18809, 734.64764, -3893.08179, 169.44260,   89.99400, 0.00000, 0.00000},
	{18809, 734.79358, -3943.14258, 169.44260,   89.99400, 0.00000, 0.00000},
	{18809, 734.67316, -3993.14941, 169.44260,   89.99400, 0.00000, 0.00000},
	{18809, 734.70691, -4043.12891, 169.44260,   89.99400, 0.00000, 0.00000},
	{18809, 734.55310, -4092.96582, 169.44260,   89.99400, 0.00000, 0.00000},
	{18809, 734.28259, -4142.85498, 169.44260,   89.99400, 0.00000, 0.00000},
	{18809, 734.36591, -4192.75146, 169.44260,   89.99400, 0.00000, 0.00000},
	{18809, 734.19745, -4242.86182, 169.44260,   89.99400, 0.00000, 0.00000},
	{18853, 733.37878, -4316.26563, 167.38260,   0.00000, -81.00000, 89.00000},
	{19333, 732.63599, -4437.60059, 173.55299,   0.00000, 0.00000, 0.00000},
	{8355, 733.43188, -4524.12256, 197.62601,   0.00000, 0.00000, 0.00000},
	{8355, 733.37140, -4662.11035, 197.62601,   0.00000, 0.00000, 0.00000},
	{8355, 733.39935, -4800.18652, 197.62601,   0.00000, 0.00000, 0.00000},
	{18844, 740.54364, -4941.01563, 198.28169,   18.00000, -87.00000, -88.82005},
	{8355, 733.72479, -4932.60400, 197.62601,   0.00000, 181.00000, 0.00000},
	{18752, 729.49158, -4945.62891, 132.11099,   0.00000, 0.00000, 5.51990},
	{18793, 742.88757, -5037.96777, 197.30000,   15.00000, -1.00000, -88.00000},
	{18793, 745.29102, -5116.63867, 197.30000,   15.00000, -1.00000, -88.00000},
	{18750, 680.00043, -3476.68652, 103.77760,   87.00000, 0.00000, 87.36004},
	{18772, 745.74152, -5281.16260, 206.92999,   -3.00000, -14.00000, 0.00000},
	{18772, 745.83618, -5530.69287, 219.92999,   -3.00000, -14.00000, 0.00000},
	{18777, 766.23511, -5654.23779, 225.95410,   0.00000, 0.00000, -176.57953},
	{18843, 747.09039, -5728.36328, 253.85201,   -91.00000, 0.00000, 0.00000},
	{18846, 747.97369, -5696.29102, 248.90500,   178.00000, 0.00000, 0.00000},
	{18846, 748.22241, -5700.93164, 248.90500,   178.00000, 0.00000, 0.00000},
	{18846, 748.42456, -5705.67090, 248.90500,   178.00000, 0.00000, 0.00000},
	{18846, 748.06348, -5710.44971, 248.90500,   178.00000, 0.00000, 0.00000},
	{18846, 747.32697, -5715.16016, 248.90500,   178.00000, 0.00000, 0.00000},
	{18846, 746.47839, -5719.78418, 248.90500,   178.00000, 0.00000, 0.00000},
	{18846, 746.16705, -5724.12354, 248.90500,   178.00000, 0.00000, 0.00000},
	{18846, 747.13702, -5727.51221, 248.90500,   178.00000, 0.00000, 0.00000},
	{18846, 747.44855, -5732.23877, 248.90500,   178.00000, 0.00000, 0.00000},
	{18846, 747.81543, -5737.42725, 248.90500,   178.00000, 0.00000, 0.00000},
	{18846, 748.13892, -5742.95459, 248.90500,   178.00000, 0.00000, 0.00000},
	{18846, 748.23151, -5747.26123, 248.90500,   178.00000, 0.00000, 0.00000},
	{18846, 748.74091, -5751.60254, 248.90500,   178.00000, 0.00000, 0.00000},
	{18847, 741.52698, -5893.44580, 248.90500,   1.00000, 0.00000, -91.00000},
	{18846, 748.92944, -5760.08008, 248.90500,   178.00000, 0.00000, 0.00000},
	{18846, 748.81470, -5764.76709, 248.90500,   178.00000, 0.00000, 0.00000},
	{18846, 748.58966, -5769.25977, 248.90500,   178.00000, 0.00000, 0.00000},
	{18846, 748.58966, -5769.25977, 248.90500,   178.00000, 0.00000, 0.00000},
	{18846, 748.58966, -5769.25977, 248.90500,   178.00000, 0.00000, 0.00000},
	{18846, 747.99902, -5772.40039, 248.90500,   147.00000, 0.00000, 0.00000},
	{18847, 737.61768, -6133.23145, 248.90500,   1.00000, 0.00000, -91.00000},
	{18847, 733.36206, -6372.51221, 248.90500,   1.00000, 0.00000, -91.00000},
	{18998, 735.43280, -6587.96875, 237.95340,   -92.00000, -8.00000, -9.00000},
	{18999, 732.00226, -6787.76611, 241.31610,   36.00000, 90.00000, -91.00000},
	{19000, 726.99951, -6987.00146, 244.30690,   -92.00000, 0.00000, -2.10000},
	{18982, 723.42584, -7136.58008, 247.40520,   0.00000, 0.00000, 0.00000},
	{18983, 723.41711, -7236.57666, 247.40520,   0.00000, 0.00000, 0.00000},
	{18984, 723.39960, -7336.47217, 247.40520,   0.00000, 0.00000, 0.00000},
	{18985, 723.45227, -7436.28271, 247.40520,   0.00000, 0.00000, 0.00000},
	{18985, 723.47406, -7535.89844, 247.40520,   0.00000, 0.00000, 0.00000},
	{18985, 723.20795, -7635.59375, 247.40520,   0.00000, 0.00000, 0.00000},
	{18985, 723.15857, -7734.82520, 247.40520,   0.00000, 0.00000, 0.00000},
	{19129, 723.85760, -7794.75488, 242.37880,   0.00000, 0.00000, 0.00000},
	{19129, 723.85297, -7814.76660, 242.37880,   0.00000, 0.00000, 0.00000},
	{19129, 723.84955, -7834.50146, 242.37880,   0.00000, 0.00000, 0.00000},
	{19129, 723.87579, -7854.24951, 242.37880,   0.00000, 0.00000, 0.00000},
	{19129, 723.86493, -7874.03857, 242.37880,   0.00000, 0.00000, 0.00000},
	{19129, 723.81104, -7894.01758, 242.37880,   0.00000, 0.00000, 0.00000},
	{19634, 722.97778, -7914.10596, 242.43460,   -88.00000, 0.00000, 0.00000},
	{19634, 723.43182, -7934.06299, 241.43460,   -88.00000, 0.00000, 0.00000},
	{19634, 723.62170, -7954.36182, 240.43460,   -88.00000, 0.00000, 0.00000},
	{18783, 723.70172, -7974.44189, 232.43460,   0.00000, 0.00000, 0.00000},
	{18783, 723.72510, -7994.34180, 232.43460,   0.00000, 0.00000, 0.00000},
	{18783, 723.75726, -8014.45508, 232.43460,   0.00000, 0.00000, 0.00000},
	{18783, 723.63690, -8034.48486, 232.43460,   0.00000, 0.00000, 0.00000},
	{18761, 723.26813, -8044.08252, 234.92891,   0.00000, 0.00000, 0.00000},
	{18783, 723.57391, -8047.16943, 232.43460,   -92.00000, 4.00000, 1.82000},
	{19817, 732.47009, -4451.18457, 197.62613,   0.00000, 0.00000, 0.00000},
	{19817, 729.67773, -4451.49463, 197.62613,   0.00000, 0.00000, 0.00000},
	{19817, 735.07178, -4451.30371, 197.62613,   0.00000, 0.00000, 0.00000},
	{19633, 746.34650, -5666.24316, 249.44804,   0.00000, 0.00000, 0.00000},
	{19337, 751.44409, -5680.37061, 220.24609,   0.00000, 0.00000, 0.00000}
};
new PlayerObjZavod[MAX_PLAYERS][sizeof(ObjZavod)];
new PlayerObjZavodNull[sizeof(ObjZavod)] = {-1,...};


public OnGameModeInit()
{
    new veh[4];
	veh[0] = AddStaticVehicle(411,850.8638,-2073.9155,12.4391,108.1080,211,211); // Závod auto #1
	veh[1] = AddStaticVehicle(411,822.7151,-2080.1833,12.4359,245.8311,211,211); // Závod auto #2
	veh[2] = AddStaticVehicle(541,822.7036,-2088.6709,12.4351,249.8430,211,1); // Závod auto #3
	veh[3] = AddStaticVehicle(541,850.2290,-2094.7412,12.4364,65.2214,211,1); // Závod #4
	for(new i;i<sizeof(veh);i++) SetVehicleVirtualWorld(veh[i],VW_ZAVOD );
	return 1;
}

public OnPlayerConnect(playerid)
{
    PlayerObjZavod[playerid] = PlayerObjZavodNull;
	return 1;
}

public OnPlayerDeath(playerid)
{
    for(new i;i<sizeof(ObjZavod);i++)
	{
        if(PlayerObjZavod[playerid][i] != -1) DestroyPlayerObject(playerid,PlayerObjZavod[playerid][i]);
	}
    PlayerObjZavod[playerid] = PlayerObjZavodNull;
	return 1;
}

CMD:zavod1(playerid,params[])
{
	SetPlayerPos(playerid,835.9068,-2067.2805,12.8672);
	SetPlayerVirtualWorld(playerid,VW_ZAVOD);
	for(new i;i<sizeof(ObjZavod);i++)
	{
        PlayerObjZavod[playerid][i] = CreatePlayerObject(playerid,ObjZavod[i][o_modelid],ObjZavod[i][o_X],ObjZavod[i][o_Y],ObjZavod[i][o_Z],ObjZavod[i][o_rX],ObjZavod[i][o_rY],ObjZavod[i][o_rZ]);
	}
	return 1;
}

Dotazy? :)

  • Líbí se mi to! (+1) 2
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...