problom in spawn ..
#1

i did do spawn points and save them and add them 2 the mode
but some thing is wrong here ..
this up in the mode
Quote:

new Float:randomSpawn[18][3] = {
(1457.3940,2773.3762,10.8203),
(2026.3984,1000.9971,10.8203),
(2057.9458,863.0795,6.9573),
(2193.8147,1677.1129,12.3672),
(1710.2896,1615.4321,10.0903),

(1623.0256,1815.9717,10.8203),
(2206.5549,1285.5034,10.8203),
(2344.6221,1388.1173,42.8203),
(2415.7441,1121.3564,10.8203),
(2546.2944,1023.7031,10.8203),

(2566.2688,1326.7695,10.8203),
(2022.9060,1916.0720,12.3305),
(2371.5679,2169.0159,10.8255),
(2008.8800,2302.1409,10.8203),
(1661.6686,2252.5186,11.0701),

(2393.9746,593.0137,10.8222),
(2821.5322,2384.8953,11.0625),
(2633.1621,2350.2942,10.812
};

and this is on player spawn public
Quote:

public OnPlayerSpawn(playerid)
{
new rand = random(sizeof(randomSpawn));
SetPlayerPos(playerid, randomSpawn[rand][0], randomSpawn[rand][1], randomSpawn[rand][2]);
SetPlayerFacingAngle(playerid, 270.0);
GivePlayerMoney(playerid,1500);
GivePlayerWeapon(playerid,24,250);
return 1;
}

so what wrong ?
becuse when i am spawn im falling there
Reply
#2

some 1 ?
Reply
#3

try this format

Код:
new Float:RandomSpawn[][3] =
{
  {-2796.9854, 1224.8180, 20.5429},
  {-2454.2170, 503.8759, 30.0790},
  {-2669.7322, -6.0874, 6.1328}
};
Reply
#4

there is a max players spawn ?
becuse when i did what u give me its work
and when i remove the spawn point and wirte mine
its those the same thing then before ?
so the problom in the spawn points ?
or some thing else ?
Reply
#5

??/
Reply
#6

pawn Код:
new Float:randomSpawn[18][3] = {
{1457.3940,2773.3762,10.8203},
{2026.3984,1000.9971,10.8203},
{2057.9458,863.0795,6.9573},
{2193.8147,1677.1129,12.3672},
{1710.2896,1615.4321,10.0903},

{1623.0256,1815.9717,10.8203},
{2206.5549,1285.5034,10.8203},
{2344.6221,1388.1173,42.8203},
{2415.7441,1121.3564,10.8203},
{2546.2944,1023.7031,10.8203},

{2566.2688,1326.7695,10.8203},
{2022.9060,1916.0720,12.3305},
{2371.5679,2169.0159,10.8255},
{2008.8800,2302.1409,10.8203},
{1661.6686,2252.5186,11.0701},

{2393.9746,593.0137,10.8222},
{2821.5322,2384.8953,11.0625},
{2633.1621,2350.2942,10.8128}
};
You need to use "{ and }" not "( and )"
Reply
#7


i was so stuped and thnx bro
Reply
#8

Lol i even didnt notice it, nice one xD
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)