Need help with Mapping -
Pewds - 01.03.2015
So I learnt how to map by Phoenix's tutorial ( Thanks pheonix! ) Now just 1 problem, I can map but how can I add spawn points on every map + How can I select, I mean, I am creating many maps in a server, I will set a timer with them, And when a round ends I want the server to select the maps randomly and the next map should be random, How to do it? I know how to do everything else just not these things. Thanks in Advance, whoever helps me gets a +rep!
Re: Need help with Mapping -
MikE1990 - 01.03.2015
You can put to load random map when round end and set player position to spawn point.To take cordinates use /save and check in My Documents\GTA San Andreas User Files\SAMP\savepositions
Read here for random
https://sampwiki.blast.hk/wiki/Random
Re: Need help with Mapping -
Pewds - 01.03.2015
Oh no no, You got it all wrong, I meant how to load random MAPS not random SPAWN POINTS... By the way thanks for the spawning help
Re: Need help with Mapping -
Pewds - 01.03.2015
Bump, Someone help pleasee..
Re: Need help with Mapping -
MikE1990 - 01.03.2015
If your server is DM you can take all maps spawn points and load all maps and when round end just spawn all on random spawn point ?
Re: Need help with Mapping -
Pewds - 01.03.2015
Hmm your suggestion gave me an awesome Idea, I can just add many maps around San Andreas, And on every round I can select random spawn points and check how to make random spawn points from your suggestions!! YES THANK YOU, +rep, By the way no it's not DM
Re: Need help with Mapping -
MikE1990 - 01.03.2015
I didn't tested it but you can check this code
Код:
#include <a_samp>
enum rSpawn
{
Float:x,
Float:y,
Float:z
}
new RandomSpawn[][rSpawn] =
{
{-2248.7813,-2558.5261,31.9219}
};
CMD:randomspawn(playerid,params[])
{
new rand = random(sizeof(RandomSpawn));
for(new i = 0;i < MAX_PLAYERS;i++)
{
SetPlayerPos(i,RandomSpawn[rand][x],RandomSpawn[rand][y],RandomSpawn[rand][z]);
}
return 1;
}
in RandomSpawn you add all your spawn points
Re: Need help with Mapping -
Beckett - 01.03.2015
First of all how are you starting the round?
Re: Need help with Mapping -
MikE1990 - 01.03.2015
Quote:
First of all how are you starting the round?
|
Thats why i asked him if his server is DM