30.03.2010, 09:12
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
and this is on player spawn public
so what wrong ?
becuse when i am spawn im falling there
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 }; |
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; } |
becuse when i am spawn im falling there