22.02.2009, 23:48
You mean you just want a few spawns and then they will get a random spawn there? Here is an example.
just place the coords you want to use for the spawn in there and then do something like this to pick a random one..
pawn Код:
new Float:LolSpawn[13][3] = {
{596.3462,1715.8889,13200.8818},
{672.0673,1634.6731,13181.5068},
{684.0848,1647.6111,13180.9922},
{701.1727,1720.1597,13140.5029},
{765.8998,1713.5703,13131.2129},
{746.9452,1590.9337,13153.1445},
{747.1368,1682.0662,13140.3506},
{695.3058,1715.1122,13143.4805},
{697.5287,1630.9753,13179.5107},
{630.8890,1710.9944,13190.5703},
{704.0422,1594.6122,13144.7500},
{738.2070,1578.1777,13147.8926},
{755.6571,1639.2150,13151.2041}
};
pawn Код:
public SpawnLol(playerid)
{
new rand = random(sizeof(LolSpawn));
SetPlayerPos(playerid, LolSpawn[rand][0], LolSpawn[rand][1], LolSpawn[rand][2]);
}