Team Spawn Problem
#1

Код:
public OnPlayerSpawn(playerid)
{
{
	if(GetPlayerTeam(playerid) == TEAM_VAGOS)
	{
		SetPlayerPos(playerid,-2136.3921,-124.4632,36.5191);//Chnage this to the spawnpoint of your Agents Team!
		SetPlayerHealth(playerid,100);
		SetPlayerColor(playerid, 0xFFFB00FF);
		switch(random(3))
	{
		case 0: SetPlayerSkin(playerid, 108);
		case 1: SetPlayerSkin(playerid, 109);
		case 2: SetPlayerSkin(playerid, 110);
	}
	
		if(GetPlayerTeam(playerid) == TEAM_VAGOS)
	{
		switch(random(3))
	{
		case 0: SetPlayerPos(playerid, -2136.3921,-124.4632,36.5191);
		case 1: SetPlayerPos(playerid, -2091.5788574219,-167.35270690918,35.3203125);
		case 2: SetPlayerPos(playerid, -2138.3454589844,-208.09596252441,35.3203125);
		}
	}
}
}

{
	if(GetPlayerTeam(playerid) == TEAM_RIFA)
 	{
  		SetPlayerHealth(playerid,100);
    	SetPlayerPos(playerid,-2016.3192,130.2446,27.6875);//Chnage this to the spawnpoint of your Workers Team!
    	SetPlayerColor(playerid, 0x00FFFBFF);
    	switch(random(3))
    {
		case 0: SetPlayerSkin(playerid, 173);
		case 1: SetPlayerSkin(playerid, 174);
		case 2: SetPlayerSkin(playerid, 175);
	}

		if(GetPlayerTeam(playerid) == TEAM_RIFA)
	{
		switch(random(3))
	{
		case 0: SetPlayerPos(playerid, -2136.3921,-124.4632,36.5191);
		case 1: SetPlayerPos(playerid, -2112.3598632813,218.61209106445,35.307075500488);
		case 2: SetPlayerPos(playerid, -2083.9604492188,297.96450805664,41.329814910889);
		}
	}
}
}
GangZoneShowForPlayer(playerid, Gang_Base_Rifa, 0x00FFFF96);
GangZoneShowForPlayer(playerid, Gang_Base_Vagos, 0xFFFF8096);
GangZoneShowForPlayer(playerid, Gang_Base_Vagos_1, 0xFFFF8096);
return 1;
}
The problem is both teams have a chance of spawning into eachothers spawn points how do i prevent this?
Reply
#2

bump tried to resolve this and have not managed to prevent this
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)