[Tutorial] Random spawns
#45

Hello ! Help me with the code! How do i make rondomny spawn both in Cops and Robbers ? That is, the police spvnitsa only on the site, doctors at the hospital and so on! What do I need to register in a public OnPlayerSpawn (playerid)


new Float:CivilianSpawn[18][4] = {
{2022.6539,1007.2164,10.8203,269.9900},
{2177.4451,963.9155,10.8203,359.9802},
{2362.6580,1005.0098,14.2725,91.5136},
{2435.0430,1653.7240,10.8203,178.3609},
{1947.6760,2068.7869,10.8203,89.0601},
{2346.8154,735.3505,11.4683,184.3114},
{2127.4910,2364.1289,10.8203,179.6657},
{1429.1036,-1091.6676,17.5623,186.9590},
{1266.1420,-2009.2614,59.2444,187.8720},
{1671.8055,-1709.1715,20.4844,102.0455},
{2316.8474,-1646.4652,14.8270,185.1704},
{2253.9595,-1777.4771,13.5469,0.6755},
{477.0917,-1514.6082,20.4747,277.2458},
{-2571.2405,1149.4059,55.7266,154.4693},
{-1942.0551,572.1608,35.1719,358.3391},
{-1992.2852,251.0843,35.1719,283.5931},
{-2030.6617,145.9314,28.8359,273.5602},
{-2616.2598,81.0121,4.3435,270.1165}
};

new Float:CopSpawn[6][4] = {
{2238.2151,2449.3613,11.0372,89.4249},
{2294.8032,2451.5522,10.8203,88.8232},
{2294.0479,2468.4722,10.8203,88.7628},
{2250.7517,2490.9146,10.9908,358.5601},
{-1620.6388,682.8951,7.1875,174.1942},
{1548.1506,-1669.6023,13.5669,88.7577}
};

new Float:PrisonSpawn[3][4] = {
{198.6401,161.5331,1003.0300,181.3124},
{193.4779,175.5881,1003.0234,6.5961},
{197.7083,174.6549,1003.0234,0.0787}
};

new Float:SFSpawn[3][4] = {
{1568.0333,-1691.7218,5.8906,183.6940},
{-1593.2145,716.1462,-5.2422,269.8380},
{2267.8535,2448.8921,3.5313,181.4704}
};

new Float:ARMYSpawn[2][4] = {
{-1473.7511,461.7685,7.1809,2.3054},
{239.7829,1859.5490,14.0840,359.0583}
};

new Float:MedicSpawn[3][4] = {
{1177.7314,-1323.7150,14.0852,270.0000},
{-2655.1633,631.4604,14.4531,176.9321},
{1607.5931, 1818.5118, 10.8203,83.20}
};
Reply


Messages In This Thread
Random spawns (Explained) - by FUNExtreme - 23.07.2010, 18:27
Re: Random spawns - by Kar - 23.07.2010, 18:29
Re: Random spawns - by FUNExtreme - 23.07.2010, 18:36
Re: Random spawns - by Finn - 23.07.2010, 18:46
Re: Random spawns - by TouR - 23.07.2010, 18:48
Re: Random spawns - by FUNExtreme - 23.07.2010, 19:01
Re: Random spawns - by TouR - 23.07.2010, 19:02
Re: Random spawns - by XtremePlanet - 25.07.2010, 08:26
Re: Random spawns - by hab2ever - 25.07.2010, 08:58
Re: Random spawns - by ViruZZzZ_ChiLLL - 25.07.2010, 09:37
Re: Random spawns - by FUNExtreme - 25.07.2010, 12:11
Re: Random spawns - by pmk1 - 11.08.2010, 17:49
Re: Random spawns - by Min - 13.08.2010, 15:31
Re: Random spawns - by Lorenc_ - 13.08.2010, 22:34
Re: Random spawns - by AiVAMAN - 23.08.2010, 09:10
Re: Random spawns - by FUNExtreme - 16.10.2010, 20:13
Re: Random spawns - by Aleluja - 17.10.2010, 08:00
Re: Random spawns - by Hudgens - 02.01.2011, 17:31
Re: Random spawns - by FUNExtreme - 02.01.2011, 17:33
Re: Random spawns - by Hudgens - 02.01.2011, 17:40
Re: Random spawns - by Guest9328472398472 - 14.05.2012, 10:43
Re: Random spawns - by JustinAn - 08.06.2012, 17:49
Re: Random spawns - by Dodo9655 - 10.06.2012, 12:03
Re: Random spawns - by [A]ndrei - 29.06.2012, 05:11
Re: Random spawns - by ErzaNatsu - 30.06.2012, 01:03
Re: Random spawns - by Captain_Mani - 08.08.2012, 07:16
Re: Random spawns - by Coder_ - 16.10.2012, 21:52
Re: Random spawns - by donhu789 - 26.04.2013, 07:22
Re: Random spawns - by Wickeed - 13.06.2013, 11:14
AW: Random spawns - by Blackazur - 13.06.2013, 11:17
Re: Random spawns - by AnonScripter - 12.09.2013, 10:43
Re: Random spawns - by FUNExtreme - 12.09.2013, 15:57
Re: Random spawns - by xVIP3Rx - 09.12.2013, 14:24
Re: Random spawns - by haZh - 25.08.2014, 03:01
Re: Random spawns - by Glossy42O - 06.11.2014, 17:29
Re: Random spawns - by jamesmith12 - 18.07.2015, 14:53
Re: Random spawns - by SteSte - 06.04.2016, 01:32
Re: Random spawns - by SteSte - 06.04.2016, 01:34
Re: Random spawns - by JohnBlaze1971 - 06.04.2016, 04:13
Re: Random spawns - by Kenxxx - 19.04.2016, 05:50
Re: Random spawns - by itsCody - 19.04.2016, 06:21
Re: Random spawns - by HumbleGuy - 27.07.2016, 21:49
Re: Random spawns - by WhiteGhost - 27.07.2016, 21:53
Re: Random spawns - by Dakin - 18.02.2018, 18:37
Re: Random spawns - by sanyaretro - 26.01.2019, 18:39
Re: Random spawns - by faxxe - 27.01.2019, 16:39
Re: Random spawns - by SymonClash - 27.01.2019, 20:21

Forum Jump:


Users browsing this thread: 4 Guest(s)