Need help with Mapping
#7

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
Reply


Messages In This Thread
Need help with Mapping - by Pewds - 01.03.2015, 17:37
Re: Need help with Mapping - by MikE1990 - 01.03.2015, 18:02
Re: Need help with Mapping - by Pewds - 01.03.2015, 18:22
Re: Need help with Mapping - by Pewds - 01.03.2015, 18:53
Re: Need help with Mapping - by MikE1990 - 01.03.2015, 19:00
Re: Need help with Mapping - by Pewds - 01.03.2015, 19:02
Re: Need help with Mapping - by MikE1990 - 01.03.2015, 19:08
Re: Need help with Mapping - by DaniceMcHarley - 01.03.2015, 20:18
Re: Need help with Mapping - by MikE1990 - 01.03.2015, 20:21

Forum Jump:


Users browsing this thread: 1 Guest(s)