SA-MP Forums Archive
Random Locations around SA - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Random Locations around SA (/showthread.php?tid=620001)



Random Locations around SA - iLearner - 24.10.2016

Hey,

I was wondering if there's any script / include that does a small job for me... i am looking for something that can help me to get cords around all SA.


Lets get to the point, i've got a dayz server, i want to spawn zombies around all SA, i took around 60 cords manually but still they arent enough so i am wondering if any include or script gives me cords for random positions around all SA


Re: Random Locations around SA - HoangNam - 25.10.2016

Ya,
PHP код:
new rand random(sizeof(RandomSpawn));
new 
Float:RandomSpawn[][7] =
{
    
// Positions, (X, Y, Z and Facing Angle)
    
{-873.1492,-1929.0703,24.6819,351.9071},
    {-
879.4926,-1911.9144,38.0141,42.6676},
    {-
862.8982,-1901.0688,38.3521,357.5472},
    {-
881.0944,-1989.5999,25.9896,184.5856},
    {-
737.8086,-1837.0662,22.1271,85.9572},
    {-
690.7778,-1913.4591,7.2225,346.3163}
};
SetPlayerCheckpoint(playeridRandomSpawn[rand][0], RandomSpawn[rand][1], RandomSpawn[rand][2], 5);
// 5 is size of cp 



Re: Random Locations around SA - Gammix - 25.10.2016

You can find the coordinates in gl_spawns.inc used in grand larceny gamemode.


Re: Random Locations around SA - iLearner - 25.10.2016

How manu spawns are they? 4 or 5?

Ill need at least 100+ (spawning zombies around SA)


Re: Random Locations around SA - Gammix - 25.10.2016

There are around 50+ as far i remember. Check the the include file.