random spawn place
#5

i almost got it to work..

but i spawn out in nowhere and i have triple checked the cord and i have no warnings or errors.

at the top of my script:
Код:
new Float:locmgw[][4] =
{
	(2179.2834, 1622.2817, 999.9767, 8.9377),
	(2173.2778, 1576.6918, 999.9637, 349.3425),
	(2190.0759, 1593.7576, 999.9708, 25.0665),
	(2196.9924, 1612.3495, 999.9675, 275.2932),
	(2206.8613, 1579.8500, 999.9770, 251.5817),
	(2222.3083, 1598.8792, 999.9706, 168.0277),
	(2232.3013, 1589.5380, 999.9569, 349.7713)
};
OnPlayerSpawn
Код:
    if(mgw[playerid] == 1)
    {
    new spawnmgw = random(sizeof(locmgw));
	SetPlayerInterior(playerid, 1);
	SetPlayerPos(playerid, locmgw[spawnmgw][0], locmgw[spawnmgw][1], locmgw[spawnmgw][2]);
    SetPlayerFacingAngle(playerid, locmgw[spawnmgw][3]);
    GivePlayerWeapon(playerid, 38, 111110); // minigun
    SetPlayerHealth(playerid, 200);
    }
Reply


Messages In This Thread
random spawn place - by Madsen - 18.03.2011, 20:17
Re: random spawn place - by Jochemd - 18.03.2011, 20:19
Re: random spawn place - by [L3th4l] - 18.03.2011, 20:21
Re: random spawn place - by Madsen - 18.03.2011, 20:55
Re: random spawn place - by Madsen - 18.03.2011, 23:36
AW: random spawn place - by xerox8521 - 18.03.2011, 23:40
Re: random spawn place - by sciman001 - 19.03.2011, 02:06
Re: AW: random spawn place - by Madsen - 19.03.2011, 13:04
Re: random spawn place - by JaTochNietDan - 19.03.2011, 13:09
Re: random spawn place - by Madsen - 19.03.2011, 13:32

Forum Jump:


Users browsing this thread: 2 Guest(s)