06.02.2019, 10:32
So i've made random spawns, but the problem is that when u spawn it spawns you randomly (which is good) but it is off coordinates which i've set (i checked them and they are okay)
code:
code:
Код:
new Random = random(sizeof(RandomSpawns)); SetPlayerPos(playerid, RandomSpawns[Random][0], RandomSpawns[Random][1], RandomSpawns[Random][2]); SetPlayerFacingAngle(playerid, RandomSpawns[Random][3]);
Код:
new Float:RandomSpawns[][34] = { //San Fierro -1635.1061,71.5297,3.5547,164.7368, -2057.0596,-90.1144,35.3203,1.3877, -2525.5627,-31.4930,25.6172,281.9160, -2880.8870,443.1212,5.0043,287.8746, -2841.4641,1072.6743,28.3203,5.3495, -2624.4978,1407.2684,7.1016,193.6880, -1742.1964,1400.3805,7.1875,132.8391, -1924.4213,566.9857,35.2478,73.0604, -2046.1444,1114.2316,53.2891,214.2176, -2290.7688,726.3207,49.4303,265.7307, -2245.9805,541.1616,35.1006,241.7468, -2594.1191,599.6640,14.4531,237.1243, -1771.3060,902.6207,25.0859,283.1758, // //Las Venturas 2026.5673,1042.0812,10.8203,272.0623, 1692.8837,1440.3188,10.7645,317.0098, 1491.2621,2224.5566,11.0234,157.1921, 2088.3433,2070.7954,10.8203,317.0042, 2333.7744,2263.8918,10.8203,357.5911, 2618.2109,2326.8542,10.8281,196.4114, 2866.3916,2402.1292,10.8203,225.6357, 2102.4443,2483.4080,11.0781,135.9211, 2029.5573,1911.3932,12.2952,196.1284, // //Los Santos 1631.4877,-1147.6058,24.0703,238.4452, 928.4918,-1226.9883,16.9482,225.6589, 1310.1926,-1372.1521,13.5982,184.5169, 1356.2518,-1757.3928,13.5078,356.3010, 2042.5020,-1702.6395,13.5547,358.2192, 2358.1033,-1743.0808,13.5469,274.9238, 2295.8821,-1240.3503,24.0145,357.8973, 2098.7344,-1367.5587,23.9844,222.6360, 1839.6584,-1939.3658,13.5431,58.1246, 1402.4919,-2232.5591,13.5391,265.1665, 396.4681,-1802.0291,7.8281,58.8624 // };