Random Spawns
#1

So I followed this tutorial https://sampforum.blast.hk/showthread.php?tid=162488.

And I am making a Cops n Robbers server.
So I want the players except the cops to spawn in random locations as in that tutorial. And I don't want the cops to get randomly spawned.

I have this under OnPlayerSpawn:
Код:
public OnPlayerSpawn(playerid)
{
	
    new Random = random(sizeof(RandomSpawns));
    SetPlayerPos(playerid, RandomSpawns[Random][0], RandomSpawns[Random][1], RandomSpawns[Random][2]);
    SetPlayerFacingAngle(playerid, RandomSpawns[Random][3]);
    return 1;
}
And I am having the coordinates of random locations too:
Код:
// Random Spawns
new Float:RandomSpawns[][] =
{
	{2097.2593,2473.7183,10.8203,178.1770},
	{1898.8087,2323.0466,10.8203,264.9472},
	{2172.4478,2008.0054,10.8203,88.9606},
	{2025.3451,1919.7219,12.3384,269.4235},
	{1690.7856,1449.0375,10.7660,270.6801},
	{2490.2200,1207.5165,10.8203,179.5049},
	{2653.4827,1093.5004,10.8203,86.7689},
	{1704.4315,993.5544,10.8203,90.2138},
	{1307.2826,2075.1921,10.8203,178.9650},
	{644.5126,1689.4279,6.9922,35.9316},
	{-332.7460,1549.4673,75.5625,3.8023},
	{12.9660,1179.5498,19.4441,178.5491},
	{1848.6863,2625.6885,10.8203,357.9653}
};
Now I want to make this random spawn for all the skins except for the skins 266, 265, 283, 284, and 285.
Those are the cop skins. How could I do this? Help would be greatly appreciated and I will +rep you.

Thanks,
Captain_Mani
Reply


Messages In This Thread
Random Spawns - by Captain_Mani - 08.08.2012, 08:51
Re: Random Spawns - by [KHK]Khalid - 08.08.2012, 09:00
Re: Random Spawns - by Youice - 08.08.2012, 09:05
Re: Random Spawns - by Captain_Mani - 08.08.2012, 10:37
Re: Random Spawns - by IceMeteor - 08.08.2012, 10:43
Re: Random Spawns - by Captain_Mani - 08.08.2012, 10:46
Re: Random Spawns - by IceMeteor - 08.08.2012, 10:49
Re: Random Spawns - by [MM]RoXoR[FS] - 08.08.2012, 10:51
Re: Random Spawns - by Captain_Mani - 08.08.2012, 11:40
Re: Random Spawns - by Vince - 08.08.2012, 11:56

Forum Jump:


Users browsing this thread: 1 Guest(s)