IsPlayerInArea
#1

I created a system of war but does not work as I would like. First work well, but I wanted to do when killing an opponent to put my point only if you are in the area in which is the war, but now no longer puts on point

Код:
	if(strcmp(cmd,"/attack",true)==0)
	{
     if(IsPlayerConnected(playerid))
	    {
			if(!IsAMember(playerid))
			{
			    SendClientMessage(playerid, COLOR_GREY, "Only family leaders can use this command!");
			    return 1;
			}
			if(PlayerInfo[playerid][pRank] < 6)
			{
			    SendClientMessage(playerid, COLOR_GREY, "Only rank 6+ can use this command!");
			    return 1;
			}
            if(AttackTime == 1)
            {
			for(new z=0; z<sizeof(ZoneInfo); z++)
			{
			    if(IsPlayerInZone(playerid,z))
			    {
		            if(takezone == 1)
		            {
		                SendClientMessage(playerid, COLOR_GRAD1, "A war is already started.");
					}
					else
					{
					    new leader[30];
					    new ward;
					    format(leader,sizeof(leader),"%s" ,ZoneInfo[GetPlayerZone(playerid)][zOwner]);
					    #define min 30000
						GetPlayerName(playerid, sendername, sizeof(sendername));

					    if(ZoneInfo[GetPlayerZone(playerid)][zTeam] == 12 && PlayerInfo[playerid][pLider] == 4)
					    {
					        SendClientMessage(playerid, COLOR_GRAD1, "Can't attack your area.");
					    }
					    else if(ZoneInfo[GetPlayerZone(playerid)][zTeam] == 13 && PlayerInfo[playerid][pLider] == 5)
					    {
					        SendClientMessage(playerid, COLOR_GRAD1, "Can't attack your area.");
					    }
					    else if(ZoneInfo[GetPlayerZone(playerid)][zTeam] == 14 && PlayerInfo[playerid][pLider] == 6)
					    {
					        SendClientMessage(playerid, COLOR_GRAD1, "Can't attack your area.");
					    }
					    else if(ZoneInfo[GetPlayerZone(playerid)][zTeam] == 15 && PlayerInfo[playerid][pLider] == 15)
					    {
					        SendClientMessage(playerid, COLOR_GRAD1, "Can't attack your area.");
					    }
						if(ZoneInfo[GetPlayerZone(playerid)][zTeam] == 12 && PlayerInfo[playerid][pLider] == 5 && PlayerInfo[playerid][pRank] >= 6)
		    			{
		    	 			if(foreons < 0)
			                {
			                SendClientMessage(playerid, COLOR_GREY, "The mafia you want to attack does not have enough members online.");
			                 return 1;
			                }
						    if(PlayerInfo[playerid][pSindacco] == 0)
							{
						        format(string, sizeof(string), "The Sindacco Family (%s) attacked The Forelli Family!",sendername);
						        SendWarMessage(TEAM_AZTECAS_COLOR, string);
						        format(string, sizeof(string), "War Time remaining: 30 minutes.",sendername);
						        SendWarMessage(TEAM_AZTECAS_COLOR, string);
						        takezone=1;
		                        ZoneInfo[z][zTakeOn] = 1;
						    	GangZoneFlashForAll(GetPlayerZone(playerid), 0xF79709C8);
						    	timerbllsgst=SetTimer("bllsgst",min*54,0);
						    	bllsvsgst = 1;
						    	sindvsfor = 1;
						    	PlayerInfo[playerid][pSindacco] += 1;
           	                	//cooldownblls = 1800;
                                if(IsPlayerInArea(playerid, 123.046875,-1376.953125,544.921875,-861.328125)) ward = 1;
			                    else if(IsPlayerInArea(playerid, 123.046875,-1910.156250,544.921875,-1376.953125)) WarZone = 2;
		                     	else if(IsPlayerInArea(playerid, 544.921875,-1376.953125,908.203125,-861.328125)) WarZone = 3;
                    			else if(IsPlayerInArea(playerid, 544.921875,-1910.156250,908.203125,-1376.953125)) WarZone = 4;
                     			else if(IsPlayerInArea(playerid, 908.203125,-1376.953125,1248.046875,-861.328125)) WarZone = 5;
	                    		else if(IsPlayerInArea(playerid, 908.203125,-1910.156250,1248.046875,-1376.953125)) WarZone = 6;
	                       		else if(IsPlayerInArea(playerid, 1248.046875,-1376.953125,1605.468750,-861.328125)) WarZone = 7;
		                    	else if(IsPlayerInArea(playerid, 1248.046875,-1910.156250,1605.468750,-1376.953125)) WarZone = 8;
		                      	else if(IsPlayerInArea(playerid, 1605.468750,-1376.953125,1962.890625,-861.328125)) WarZone = 9;
		                    	else if(IsPlayerInArea(playerid, 1605.468750,-1910.156250,1962.890625,-1376.953125)) WarZone = 10;
	                          	else if(IsPlayerInArea(playerid, 1962.890625,-1376.953125,2332.031250,-861.328125)) WarZone = 11;
	                    		else if(IsPlayerInArea(playerid, 1962.890625,-1910.156250,2332.031250,-1376.953125)) WarZone = 12;
		                      	else if(IsPlayerInArea(playerid, 2332.031250,-1376.953125,2677.734375,-861.328125)) WarZone = 13;
		                      	else if(IsPlayerInArea(playerid, 2332.031250,-1910.156250,2677.734375,-1376.953125)) WarZone = 14;
			                    else if(IsPlayerInArea(playerid, 2677.734375,-1376.953125,3017.578125,-861.328125)) WarZone = 15;
			                    else if(IsPlayerInArea(playerid, 2677.734375,-1910.156250,3000.000000,-1376.953125)) WarZone = 16;
			                    else if(IsPlayerInArea(playerid, 955.078125,-2337.890625,1476.562500,-1910.156250)) WarZone = 17;
			                    else if(IsPlayerInArea(playerid, 955.078125,-2777.343750,1476.562500,-2337.890625)) WarZone = 18;
		                      	else if(IsPlayerInArea(playerid, 1476.562500,-2337.890625,1939.453125,-1910.156250)) WarZone = 19;
		                      	else if(IsPlayerInArea(playerid, 1476.562500,-2777.343750,1939.453125,-2337.890625)) WarZone = 20;
			                    else if(IsPlayerInArea(playerid, 1939.453125,-2337.890625,2431.640625,-1910.156250)) WarZone = 21;
			                    else if(IsPlayerInArea(playerid, 1939.453125,-2777.343750,2431.640625,-2337.890625)) WarZone = 22;
			                    else if(IsPlayerInArea(playerid, 2431.640625,-2337.890625,3000.000000,-1910.156250)) WarZone = 23;
			                    else if(IsPlayerInArea(playerid, 2431.640625,-2777.343750,3000.000000,-2337.890625)) WarZone = 24;
							    else return 1;
							}
							else
							{
								format(string, 128, "Can't attack until PayDay.");
								SendClientMessage(playerid,COLOR_GREY, string);
							}
			    		}
					    else if(ZoneInfo[GetPlayerZone(playerid)][zTeam] == 12 && PlayerInfo[playerid][pLider] == 6 && PlayerInfo[playerid][pRank] >= 6)
						{
 	 			     if(foreons < 0)
			                {
			                SendClientMessage(playerid, COLOR_GREY, "The mafia you want to attack does not have enough members online.");
			                 return 1;
			                }
						    if(PlayerInfo[playerid][pLeone] == 0)
							{
	      						format(string, sizeof(string), "The Leone Family (%s) attacked The Forelli Family!",sendername);
						        SendWarMessage(TEAM_AZTECAS_COLOR, string);
 	      						format(string, sizeof(string), "War Time remaining: 30 minutes.",sendername);
						        SendWarMessage(TEAM_AZTECAS_COLOR, string);
						        takezone=1;
						        ZoneInfo[z][zTakeOn] = 1;
						    	GangZoneFlashForAll(GetPlayerZone(playerid), 0x648CA4C8);
		                        timerlsvgst=SetTimer("lsvgst",min*54,0);
		                        lsvvsgst = 1;
		                        leovsfore = 1;
		                        PlayerInfo[playerid][pLeone] += 1;
				    		//	cooldownlsv = 1800;
				    					                if(IsPlayerInArea(playerid, 123.046875,-1376.953125,544.921875,-861.328125)) ward = 1;
			                    else if(IsPlayerInArea(playerid, 123.046875,-1910.156250,544.921875,-1376.953125)) WarZone = 2;
		                     	else if(IsPlayerInArea(playerid, 544.921875,-1376.953125,908.203125,-861.328125)) WarZone = 3;
                    			else if(IsPlayerInArea(playerid, 544.921875,-1910.156250,908.203125,-1376.953125)) WarZone = 4;
                     			else if(IsPlayerInArea(playerid, 908.203125,-1376.953125,1248.046875,-861.328125)) WarZone = 5;
	                    		else if(IsPlayerInArea(playerid, 908.203125,-1910.156250,1248.046875,-1376.953125)) WarZone = 6;
	                       		else if(IsPlayerInArea(playerid, 1248.046875,-1376.953125,1605.468750,-861.328125)) WarZone = 7;
		                    	else if(IsPlayerInArea(playerid, 1248.046875,-1910.156250,1605.468750,-1376.953125)) WarZone = 8;
		                      	else if(IsPlayerInArea(playerid, 1605.468750,-1376.953125,1962.890625,-861.328125)) WarZone = 9;
		                    	else if(IsPlayerInArea(playerid, 1605.468750,-1910.156250,1962.890625,-1376.953125)) WarZone = 10;
	                          	else if(IsPlayerInArea(playerid, 1962.890625,-1376.953125,2332.031250,-861.328125)) WarZone = 11;
	                    		else if(IsPlayerInArea(playerid, 1962.890625,-1910.156250,2332.031250,-1376.953125)) WarZone = 12;
		                      	else if(IsPlayerInArea(playerid, 2332.031250,-1376.953125,2677.734375,-861.328125)) WarZone = 13;
		                      	else if(IsPlayerInArea(playerid, 2332.031250,-1910.156250,2677.734375,-1376.953125)) WarZone = 14;
			                    else if(IsPlayerInArea(playerid, 2677.734375,-1376.953125,3017.578125,-861.328125)) WarZone = 15;
			                    else if(IsPlayerInArea(playerid, 2677.734375,-1910.156250,3000.000000,-1376.953125)) WarZone = 16;
			                    else if(IsPlayerInArea(playerid, 955.078125,-2337.890625,1476.562500,-1910.156250)) WarZone = 17;
			                    else if(IsPlayerInArea(playerid, 955.078125,-2777.343750,1476.562500,-2337.890625)) WarZone = 18;
		                      	else if(IsPlayerInArea(playerid, 1476.562500,-2337.890625,1939.453125,-1910.156250)) WarZone = 19;
		                      	else if(IsPlayerInArea(playerid, 1476.562500,-2777.343750,1939.453125,-2337.890625)) WarZone = 20;
			                    else if(IsPlayerInArea(playerid, 1939.453125,-2337.890625,2431.640625,-1910.156250)) WarZone = 21;
			                    else if(IsPlayerInArea(playerid, 1939.453125,-2777.343750,2431.640625,-2337.890625)) WarZone = 22;
			                    else if(IsPlayerInArea(playerid, 2431.640625,-2337.890625,3000.000000,-1910.156250)) WarZone = 23;
			                    else if(IsPlayerInArea(playerid, 2431.640625,-2777.343750,3000.000000,-2337.890625)) WarZone = 24;
							    else return 1;
				    	      if(PlayerInfo[playerid][pLider] == 6 || PlayerInfo[playerid][pLider] == 4 || PlayerInfo[playerid][pMembru] == 6 || PlayerInfo[playerid][pMembru] == 4)
							 {
                   if(ShowPlayerMarkers(0))
                   {
                      ShowPlayerMarkers(2);
                   }
							 }
	                        }
							else
							{
								format(string, 128, "Can't attack until PayDay.");
								SendClientMessage(playerid,COLOR_GREY, string);
							}
						}
					 	else if(ZoneInfo[GetPlayerZone(playerid)][zTeam] == 13 && PlayerInfo[playerid][pLider] == 4 && PlayerInfo[playerid][pRank] >= 6)
						{
 	 			       if(sindons < 0)
			                {
			                SendClientMessage(playerid, COLOR_GREY, "The mafia you want to attack does not have enough members online.");
			                 return 1;
			                }
						    if(PlayerInfo[playerid][pForelli] == 0)
							{
	         					format(string, sizeof(string), "The Forelli Family (%s) attacked The Sindacco Family!",sendername);
						        SendWarMessage( TEAM_AZTECAS_COLOR, string);
						        format(string, sizeof(string), "War Time remaining: 30 minutes.",sendername);
						        SendWarMessage(TEAM_AZTECAS_COLOR, string);
						        takezone=1;
						        ZoneInfo[z][zTakeOn] = 1;
						    	GangZoneFlashForAll(GetPlayerZone(playerid), 0x2A2A2AC8);
						    	timergstblls=SetTimer("gstblls",min*54,0);
				    		//	cooldowngst = 1800;
						    	bllsvsgst = 1;
						    	forevssind = 1;
						    	PlayerInfo[playerid][pForelli] += 1;
						    				                if(IsPlayerInArea(playerid, 123.046875,-1376.953125,544.921875,-861.328125)) ward = 1;
			                    else if(IsPlayerInArea(playerid, 123.046875,-1910.156250,544.921875,-1376.953125)) WarZone = 2;
		                     	else if(IsPlayerInArea(playerid, 544.921875,-1376.953125,908.203125,-861.328125)) WarZone = 3;
                    			else if(IsPlayerInArea(playerid, 544.921875,-1910.156250,908.203125,-1376.953125)) WarZone = 4;
                     			else if(IsPlayerInArea(playerid, 908.203125,-1376.953125,1248.046875,-861.328125)) WarZone = 5;
	                    		else if(IsPlayerInArea(playerid, 908.203125,-1910.156250,1248.046875,-1376.953125)) WarZone = 6;
	                       		else if(IsPlayerInArea(playerid, 1248.046875,-1376.953125,1605.468750,-861.328125)) WarZone = 7;
		                    	else if(IsPlayerInArea(playerid, 1248.046875,-1910.156250,1605.468750,-1376.953125)) WarZone = 8;
		                      	else if(IsPlayerInArea(playerid, 1605.468750,-1376.953125,1962.890625,-861.328125)) WarZone = 9;
		                    	else if(IsPlayerInArea(playerid, 1605.468750,-1910.156250,1962.890625,-1376.953125)) WarZone = 10;
	                          	else if(IsPlayerInArea(playerid, 1962.890625,-1376.953125,2332.031250,-861.328125)) WarZone = 11;
	                    		else if(IsPlayerInArea(playerid, 1962.890625,-1910.156250,2332.031250,-1376.953125)) WarZone = 12;
		                      	else if(IsPlayerInArea(playerid, 2332.031250,-1376.953125,2677.734375,-861.328125)) WarZone = 13;
		                      	else if(IsPlayerInArea(playerid, 2332.031250,-1910.156250,2677.734375,-1376.953125)) WarZone = 14;
			                    else if(IsPlayerInArea(playerid, 2677.734375,-1376.953125,3017.578125,-861.328125)) WarZone = 15;
			                    else if(IsPlayerInArea(playerid, 2677.734375,-1910.156250,3000.000000,-1376.953125)) WarZone = 16;
			                    else if(IsPlayerInArea(playerid, 955.078125,-2337.890625,1476.562500,-1910.156250)) WarZone = 17;
			                    else if(IsPlayerInArea(playerid, 955.078125,-2777.343750,1476.562500,-2337.890625)) WarZone = 18;
		                      	else if(IsPlayerInArea(playerid, 1476.562500,-2337.890625,1939.453125,-1910.156250)) WarZone = 19;
		                      	else if(IsPlayerInArea(playerid, 1476.562500,-2777.343750,1939.453125,-2337.890625)) WarZone = 20;
			                    else if(IsPlayerInArea(playerid, 1939.453125,-2337.890625,2431.640625,-1910.156250)) WarZone = 21;
			                    else if(IsPlayerInArea(playerid, 1939.453125,-2777.343750,2431.640625,-2337.890625)) WarZone = 22;
			                    else if(IsPlayerInArea(playerid, 2431.640625,-2337.890625,3000.000000,-1910.156250)) WarZone = 23;
			                    else if(IsPlayerInArea(playerid, 2431.640625,-2777.343750,3000.000000,-2337.890625)) WarZone = 24;
							    else return 1;
		        if(PlayerInfo[playerid][pLider] == 4 || PlayerInfo[playerid][pLider] == 5 || PlayerInfo[playerid][pMembru] == 5 || PlayerInfo[playerid][pMembru] == 4)
							 {
                   if(ShowPlayerMarkers(0))
                   {
                      ShowPlayerMarkers(2);
                   }
							 }
							}
	                        else
							{
								format(string, 128, "Can't attack until PayDay.");
								SendClientMessage(playerid,COLOR_GREY, string);
							}
	   					}
					    else if(ZoneInfo[GetPlayerZone(playerid)][zTeam] == 13 && PlayerInfo[playerid][pLider] == 6 && PlayerInfo[playerid][pRank] >= 6)
					    {
					     	 			       if(sindons < 0)
			                {
			                SendClientMessage(playerid, COLOR_GREY, "The mafia you want to attack does not have enough members online.");
			                 return 1;
			                }
					        if(PlayerInfo[playerid][pLeone] == 0)
							{
	         					format(string, sizeof(string), "The Leone Family (%s) attacked The Sindacco Family!",sendername);
						        SendWarMessage(TEAM_AZTECAS_COLOR, string);
						        format(string, sizeof(string), "War Time remaining: 30 minutes.",sendername);
						        SendWarMessage(TEAM_AZTECAS_COLOR, string);
						        takezone=1;
						        ZoneInfo[z][zTakeOn] = 1;
						    	GangZoneFlashForAll(GetPlayerZone(playerid), 0x648CA4C8);
						    	timerlsvblls=SetTimer("lsvblls",min*54,0);
						    	PlayerInfo[playerid][pLeone] += 1;
						    				                if(IsPlayerInArea(playerid, 123.046875,-1376.953125,544.921875,-861.328125)) ward = 1;
			                    else if(IsPlayerInArea(playerid, 123.046875,-1910.156250,544.921875,-1376.953125)) WarZone = 2;
		                     	else if(IsPlayerInArea(playerid, 544.921875,-1376.953125,908.203125,-861.328125)) WarZone = 3;
                    			else if(IsPlayerInArea(playerid, 544.921875,-1910.156250,908.203125,-1376.953125)) WarZone = 4;
                     			else if(IsPlayerInArea(playerid, 908.203125,-1376.953125,1248.046875,-861.328125)) WarZone = 5;
	                    		else if(IsPlayerInArea(playerid, 908.203125,-1910.156250,1248.046875,-1376.953125)) WarZone = 6;
	                       		else if(IsPlayerInArea(playerid, 1248.046875,-1376.953125,1605.468750,-861.328125)) WarZone = 7;
		                    	else if(IsPlayerInArea(playerid, 1248.046875,-1910.156250,1605.468750,-1376.953125)) WarZone = 8;
		                      	else if(IsPlayerInArea(playerid, 1605.468750,-1376.953125,1962.890625,-861.328125)) WarZone = 9;
		                    	else if(IsPlayerInArea(playerid, 1605.468750,-1910.156250,1962.890625,-1376.953125)) WarZone = 10;
	                          	else if(IsPlayerInArea(playerid, 1962.890625,-1376.953125,2332.031250,-861.328125)) WarZone = 11;
	                    		else if(IsPlayerInArea(playerid, 1962.890625,-1910.156250,2332.031250,-1376.953125)) WarZone = 12;
		                      	else if(IsPlayerInArea(playerid, 2332.031250,-1376.953125,2677.734375,-861.328125)) WarZone = 13;
		                      	else if(IsPlayerInArea(playerid, 2332.031250,-1910.156250,2677.734375,-1376.953125)) WarZone = 14;
			                    else if(IsPlayerInArea(playerid, 2677.734375,-1376.953125,3017.578125,-861.328125)) WarZone = 15;
			                    else if(IsPlayerInArea(playerid, 2677.734375,-1910.156250,3000.000000,-1376.953125)) WarZone = 16;
			                    else if(IsPlayerInArea(playerid, 955.078125,-2337.890625,1476.562500,-1910.156250)) WarZone = 17;
			                    else if(IsPlayerInArea(playerid, 955.078125,-2777.343750,1476.562500,-2337.890625)) WarZone = 18;
		                      	else if(IsPlayerInArea(playerid, 1476.562500,-2337.890625,1939.453125,-1910.156250)) WarZone = 19;
		                      	else if(IsPlayerInArea(playerid, 1476.562500,-2777.343750,1939.453125,-2337.890625)) WarZone = 20;
			                    else if(IsPlayerInArea(playerid, 1939.453125,-2337.890625,2431.640625,-1910.156250)) WarZone = 21;
			                    else if(IsPlayerInArea(playerid, 1939.453125,-2777.343750,2431.640625,-2337.890625)) WarZone = 22;
			                    else if(IsPlayerInArea(playerid, 2431.640625,-2337.890625,3000.000000,-1910.156250)) WarZone = 23;
			                    else if(IsPlayerInArea(playerid, 2431.640625,-2777.343750,3000.000000,-2337.890625)) WarZone = 24;
							    else return 1;
                         if(PlayerInfo[playerid][pLider] == 6 || PlayerInfo[playerid][pLider] == 5 || PlayerInfo[playerid][pMembru] == 5 || PlayerInfo[playerid][pMembru] == 6)
							 {
                   if(ShowPlayerMarkers(0))
                   {
                      ShowPlayerMarkers(2);
                   }
							 }
						    	for(new i=0; i<MAX_PLAYERS; i++)
						    	{
						    	    if(PlayerInfo[i][pLider] == 14)
						    	    {
						    		//	cooldownlsv = 1800;
									}
								}
								lsvvsblls=1;
								leovssind = 1;
							}
							else
							{
								format(string, 128, " Can't attack until PayDay.");
								SendClientMessage(playerid,COLOR_GREY, string);
							}
						}
					    else if(ZoneInfo[GetPlayerZone(playerid)][zTeam] == 14 && PlayerInfo[playerid][pLider] == 4 && PlayerInfo[playerid][pRank] >= 6)
					    {
					     	 			       if(leoneons < 0)
			                {
			                SendClientMessage(playerid, COLOR_GREY, "The mafia you want to attack does not have enough members online.");
			                 return 1;
			                }
					         if(PlayerInfo[playerid][pForelli] == 0)
							{
						        format(string, sizeof(string), "The Forelli Family (%s) attacked The Leone Family!",sendername);
		       					SendWarMessage(TEAM_AZTECAS_COLOR, string);
						        format(string, sizeof(string), "War Time remaining: 30 minutes.",sendername);
						        SendWarMessage(TEAM_AZTECAS_COLOR, string);
		       					takezone=1;
		       					ZoneInfo[z][zTakeOn] = 1;
						    	GangZoneFlashForAll(GetPlayerZone(playerid), 0x2A2A2AC8);
						    	timergstlsv=SetTimer("gstlsv",min*54,0);
				    			//cooldowngst = 1800;
				    			PlayerInfo[playerid][pForelli] += 1;
						    	lsvvsgst = 1;
						    	forevsleo = 1;
						    				                if(IsPlayerInArea(playerid, 123.046875,-1376.953125,544.921875,-861.328125)) ward = 1;
			                    else if(IsPlayerInArea(playerid, 123.046875,-1910.156250,544.921875,-1376.953125)) WarZone = 2;
		                     	else if(IsPlayerInArea(playerid, 544.921875,-1376.953125,908.203125,-861.328125)) WarZone = 3;
                    			else if(IsPlayerInArea(playerid, 544.921875,-1910.156250,908.203125,-1376.953125)) WarZone = 4;
                     			else if(IsPlayerInArea(playerid, 908.203125,-1376.953125,1248.046875,-861.328125)) WarZone = 5;
	                    		else if(IsPlayerInArea(playerid, 908.203125,-1910.156250,1248.046875,-1376.953125)) WarZone = 6;
	                       		else if(IsPlayerInArea(playerid, 1248.046875,-1376.953125,1605.468750,-861.328125)) WarZone = 7;
		                    	else if(IsPlayerInArea(playerid, 1248.046875,-1910.156250,1605.468750,-1376.953125)) WarZone = 8;
		                      	else if(IsPlayerInArea(playerid, 1605.468750,-1376.953125,1962.890625,-861.328125)) WarZone = 9;
		                    	else if(IsPlayerInArea(playerid, 1605.468750,-1910.156250,1962.890625,-1376.953125)) WarZone = 10;
	                          	else if(IsPlayerInArea(playerid, 1962.890625,-1376.953125,2332.031250,-861.328125)) WarZone = 11;
	                    		else if(IsPlayerInArea(playerid, 1962.890625,-1910.156250,2332.031250,-1376.953125)) WarZone = 12;
		                      	else if(IsPlayerInArea(playerid, 2332.031250,-1376.953125,2677.734375,-861.328125)) WarZone = 13;
		                      	else if(IsPlayerInArea(playerid, 2332.031250,-1910.156250,2677.734375,-1376.953125)) WarZone = 14;
			                    else if(IsPlayerInArea(playerid, 2677.734375,-1376.953125,3017.578125,-861.328125)) WarZone = 15;
			                    else if(IsPlayerInArea(playerid, 2677.734375,-1910.156250,3000.000000,-1376.953125)) WarZone = 16;
			                    else if(IsPlayerInArea(playerid, 955.078125,-2337.890625,1476.562500,-1910.156250)) WarZone = 17;
			                    else if(IsPlayerInArea(playerid, 955.078125,-2777.343750,1476.562500,-2337.890625)) WarZone = 18;
		                      	else if(IsPlayerInArea(playerid, 1476.562500,-2337.890625,1939.453125,-1910.156250)) WarZone = 19;
		                      	else if(IsPlayerInArea(playerid, 1476.562500,-2777.343750,1939.453125,-2337.890625)) WarZone = 20;
			                    else if(IsPlayerInArea(playerid, 1939.453125,-2337.890625,2431.640625,-1910.156250)) WarZone = 21;
			                    else if(IsPlayerInArea(playerid, 1939.453125,-2777.343750,2431.640625,-2337.890625)) WarZone = 22;
			                    else if(IsPlayerInArea(playerid, 2431.640625,-2337.890625,3000.000000,-1910.156250)) WarZone = 23;
			                    else if(IsPlayerInArea(playerid, 2431.640625,-2777.343750,3000.000000,-2337.890625)) WarZone = 24;
							    else return 1;
                             if(PlayerInfo[playerid][pLider] == 4 || PlayerInfo[playerid][pLider] == 6 || PlayerInfo[playerid][pMembru] == 6 || PlayerInfo[playerid][pMembru] == 4)
							 {
                   if(ShowPlayerMarkers(0))
                   {
                      ShowPlayerMarkers(2);
                   }
							 }
					    	}
					    	else
					    	{
					    		format(string, 128, "Can't attack until PayDay.");
								SendClientMessage(playerid,COLOR_GREY, string);
					    	}

					    }
				     	else if(ZoneInfo[GetPlayerZone(playerid)][zTeam] == 14 && PlayerInfo[playerid][pLider] == 5 && PlayerInfo[playerid][pRank] >= 6)
					    {
		        if(leoneons < 0)
			                {
			                SendClientMessage(playerid, COLOR_GREY, "The mafia you want to attack does not have enough members online.");
			                 return 1;
			                }
					        if(PlayerInfo[playerid][pSindacco] == 0)
							{
						        format(string, sizeof(string), "The Sindacco Family (%s) attacked The Leone Family!",sendername);
		       					SendWarMessage(TEAM_AZTECAS_COLOR, string);
						        format(string, sizeof(string), "War Time remaining: 30 minutes.",sendername);
						        SendWarMessage(TEAM_AZTECAS_COLOR, string);
		       					takezone=1;
		       					ZoneInfo[z][zTakeOn] = 1;
						    	GangZoneFlashForAll(GetPlayerZone(playerid), 0xF79709C8);
						    	timerbllslsv=SetTimer("bllslsv",min*54,0);
                                 PlayerInfo[playerid][pSindacco] += 1;
                                 			                if(IsPlayerInArea(playerid, 123.046875,-1376.953125,544.921875,-861.328125)) ward = 1;
			                    else if(IsPlayerInArea(playerid, 123.046875,-1910.156250,544.921875,-1376.953125)) WarZone = 2;
		                     	else if(IsPlayerInArea(playerid, 544.921875,-1376.953125,908.203125,-861.328125)) WarZone = 3;
                    			else if(IsPlayerInArea(playerid, 544.921875,-1910.156250,908.203125,-1376.953125)) WarZone = 4;
                     			else if(IsPlayerInArea(playerid, 908.203125,-1376.953125,1248.046875,-861.328125)) WarZone = 5;
	                    		else if(IsPlayerInArea(playerid, 908.203125,-1910.156250,1248.046875,-1376.953125)) WarZone = 6;
	                       		else if(IsPlayerInArea(playerid, 1248.046875,-1376.953125,1605.468750,-861.328125)) WarZone = 7;
		                    	else if(IsPlayerInArea(playerid, 1248.046875,-1910.156250,1605.468750,-1376.953125)) WarZone = 8;
		                      	else if(IsPlayerInArea(playerid, 1605.468750,-1376.953125,1962.890625,-861.328125)) WarZone = 9;
		                    	else if(IsPlayerInArea(playerid, 1605.468750,-1910.156250,1962.890625,-1376.953125)) WarZone = 10;
	                          	else if(IsPlayerInArea(playerid, 1962.890625,-1376.953125,2332.031250,-861.328125)) WarZone = 11;
	                    		else if(IsPlayerInArea(playerid, 1962.890625,-1910.156250,2332.031250,-1376.953125)) WarZone = 12;
		                      	else if(IsPlayerInArea(playerid, 2332.031250,-1376.953125,2677.734375,-861.328125)) WarZone = 13;
		                      	else if(IsPlayerInArea(playerid, 2332.031250,-1910.156250,2677.734375,-1376.953125)) WarZone = 14;
			                    else if(IsPlayerInArea(playerid, 2677.734375,-1376.953125,3017.578125,-861.328125)) WarZone = 15;
			                    else if(IsPlayerInArea(playerid, 2677.734375,-1910.156250,3000.000000,-1376.953125)) WarZone = 16;
			                    else if(IsPlayerInArea(playerid, 955.078125,-2337.890625,1476.562500,-1910.156250)) WarZone = 17;
			                    else if(IsPlayerInArea(playerid, 955.078125,-2777.343750,1476.562500,-2337.890625)) WarZone = 18;
		                      	else if(IsPlayerInArea(playerid, 1476.562500,-2337.890625,1939.453125,-1910.156250)) WarZone = 19;
		                      	else if(IsPlayerInArea(playerid, 1476.562500,-2777.343750,1939.453125,-2337.890625)) WarZone = 20;
			                    else if(IsPlayerInArea(playerid, 1939.453125,-2337.890625,2431.640625,-1910.156250)) WarZone = 21;
			                    else if(IsPlayerInArea(playerid, 1939.453125,-2777.343750,2431.640625,-2337.890625)) WarZone = 22;
			                    else if(IsPlayerInArea(playerid, 2431.640625,-2337.890625,3000.000000,-1910.156250)) WarZone = 23;
			                    else if(IsPlayerInArea(playerid, 2431.640625,-2777.343750,3000.000000,-2337.890625)) WarZone = 24;
							    else return 1;
                                 if(PlayerInfo[playerid][pLider] == 5 || PlayerInfo[playerid][pLider] == 6 || PlayerInfo[playerid][pMembru] == 5 || PlayerInfo[playerid][pMembru] == 6)
							 {
                   if(ShowPlayerMarkers(0))
                   {
                      ShowPlayerMarkers(2);
                   }
							 }
								for(new i=0; i<MAX_PLAYERS; i++)
						    	{
						    	    if(PlayerInfo[i][pLider] == 5)
						    	    {
						    		//	cooldownblls = 1800;
									}
								}
						    	lsvvsblls=1;
						    	sindvsleo = 1;
							}
	                        else
					    	{
					    		format(string, 128, "Can't attack until PayDay.");
								SendClientMessage(playerid,COLOR_GREY, string);
					    	}
					    }
					}
				}
			}
	    }
	    else SCM(playerid, COLOR_GRAD1, "Command deactivated by admin.");
	    }
  return 1;
 }
Код:
new mw = killerid;
if(bllsvsgst == 1)
		{
		if(IsPlayerInArea(mw, 123.046875,-1376.953125,544.921875,-861.328125) && WarZone == 1 || IsPlayerInArea(mw, 123.046875,-1910.156250,544.921875,-1376.953125) && WarZone == 2 || IsPlayerInArea(mw, 544.921875,-1376.953125,908.203125,-861.328125) && WarZone == 3||IsPlayerInArea(mw, 544.921875,-1910.156250,908.203125,-1376.953125) && WarZone== 4 ||
IsPlayerInArea(mw, 908.203125,-1376.953125,1248.046875,-861.328125) && WarZone == 5 || IsPlayerInArea(mw, 908.203125,-1910.156250,1248.046875,-1376.953125) && WarZone == 6 || IsPlayerInArea(mw,1248.046875,-1376.953125,1605.468750,-861.328125) && WarZone == 7 || IsPlayerInArea(mw,1248.046875,-1910.156250,1605.468750,-1376.953125) && WarZone == 8 ||
IsPlayerInArea(mw, 1605.468750,-1376.953125,1962.890625,-861.328125) && WarZone == 9 || IsPlayerInArea(mw, 1605.468750,-1910.156250,1962.890625,-1376.953125) && WarZone == 10 || IsPlayerInArea(mw, 1962.890625,-1376.953125,2332.031250,-861.328125) && WarZone == 11 || IsPlayerInArea(mw, 1962.890625,-1910.156250,2332.031250,-1376.953125) && WarZone==12 ||
IsPlayerInArea(mw, 2332.031250,-1376.953125,2677.734375,-861.328125) && WarZone == 13 || IsPlayerInArea(mw, 2332.031250,-1910.156250,2677.734375,-1376.953125) && WarZone == 14 || IsPlayerInArea(mw, 2677.734375,-1376.953125,3017.578125,-861.328125) && WarZone == 15 || IsPlayerInArea(mw, 2677.734375,-1910.156250,3000.000000,-1376.953125) && WarZone == 16 ||
IsPlayerInArea(mw, 955.078125,-2337.890625,1476.562500,-1910.156250) && WarZone == 17 || IsPlayerInArea(mw, 955.078125,-2777.343750,1476.562500,-2337.890625) && WarZone == 18 || IsPlayerInArea(mw, 1476.562500,-2337.890625,1939.453125,-1910.156250) && WarZone == 19 || IsPlayerInArea(mw, 1476.562500,-2777.343750,1939.453125,-2337.890625) && WarZone == 20 ||
IsPlayerInArea(mw, 1939.453125,-2337.890625,2431.640625,-1910.156250) && WarZone == 21 || IsPlayerInArea(mw, 1939.453125,-2777.343750,2431.640625,-2337.890625) && WarZone == 22 || IsPlayerInArea(mw, 2431.640625,-2337.890625,3000.000000,-1910.156250) && WarZone == 23 || IsPlayerInArea(mw,2431.640625,-2777.343750,3000.000000,-2337.890625) && WarZone == 24)
{
			if(PlayerInfo[killerid][pLider] == 4 || PlayerInfo[killerid][pMembru] == 4)
			{
			    if(PlayerInfo[playerid][pLider] == 5 || PlayerInfo[playerid][pMembru] == 5)
			    {
			    SendClientMessage(killerid, TEAM_AZTECAS_COLOR, "You killed an enemy.");
   			    SendClientMessage(playerid, TEAM_AZTECAS_COLOR, "You were killed by an enemy.");
			        scoreteamforelli += 1;
			    }
			}
			if(PlayerInfo[killerid][pLider] == 5 || PlayerInfo[killerid][pMembru] == 5)
			{
			    if(PlayerInfo[playerid][pLider] == 4 || PlayerInfo[playerid][pMembru] == 4)
			    {
			    SendClientMessage(killerid, TEAM_AZTECAS_COLOR, "You killed an enemy.");
   			    SendClientMessage(playerid, TEAM_AZTECAS_COLOR, "You were killed by an enemy.");
			        scoreteamsindacco += 1;
			    }
			}
		}
}
		if(lsvvsgst == 1)
		{
		if(IsPlayerInArea(mw, 123.046875,-1376.953125,544.921875,-861.328125) && WarZone == 1 || IsPlayerInArea(mw, 123.046875,-1910.156250,544.921875,-1376.953125) && WarZone == 2 || IsPlayerInArea(mw, 544.921875,-1376.953125,908.203125,-861.328125) && WarZone == 3||IsPlayerInArea(mw, 544.921875,-1910.156250,908.203125,-1376.953125) && WarZone== 4 ||
IsPlayerInArea(mw, 908.203125,-1376.953125,1248.046875,-861.328125) && WarZone == 5 || IsPlayerInArea(mw, 908.203125,-1910.156250,1248.046875,-1376.953125) && WarZone == 6 || IsPlayerInArea(mw,1248.046875,-1376.953125,1605.468750,-861.328125) && WarZone == 7 || IsPlayerInArea(mw,1248.046875,-1910.156250,1605.468750,-1376.953125) && WarZone == 8 ||
IsPlayerInArea(mw, 1605.468750,-1376.953125,1962.890625,-861.328125) && WarZone == 9 || IsPlayerInArea(mw, 1605.468750,-1910.156250,1962.890625,-1376.953125) && WarZone == 10 || IsPlayerInArea(mw, 1962.890625,-1376.953125,2332.031250,-861.328125) && WarZone == 11 || IsPlayerInArea(mw, 1962.890625,-1910.156250,2332.031250,-1376.953125) && WarZone==12 ||
IsPlayerInArea(mw, 2332.031250,-1376.953125,2677.734375,-861.328125) && WarZone == 13 || IsPlayerInArea(mw, 2332.031250,-1910.156250,2677.734375,-1376.953125) && WarZone == 14 || IsPlayerInArea(mw, 2677.734375,-1376.953125,3017.578125,-861.328125) && WarZone == 15 || IsPlayerInArea(mw, 2677.734375,-1910.156250,3000.000000,-1376.953125) && WarZone == 16 ||
IsPlayerInArea(mw, 955.078125,-2337.890625,1476.562500,-1910.156250) && WarZone == 17 || IsPlayerInArea(mw, 955.078125,-2777.343750,1476.562500,-2337.890625) && WarZone == 18 || IsPlayerInArea(mw, 1476.562500,-2337.890625,1939.453125,-1910.156250) && WarZone == 19 || IsPlayerInArea(mw, 1476.562500,-2777.343750,1939.453125,-2337.890625) && WarZone == 20 ||
IsPlayerInArea(mw, 1939.453125,-2337.890625,2431.640625,-1910.156250) && WarZone == 21 || IsPlayerInArea(mw, 1939.453125,-2777.343750,2431.640625,-2337.890625) && WarZone == 22 || IsPlayerInArea(mw, 2431.640625,-2337.890625,3000.000000,-1910.156250) && WarZone == 23 || IsPlayerInArea(mw,2431.640625,-2777.343750,3000.000000,-2337.890625) && WarZone == 24)
{
			if(PlayerInfo[killerid][pLider] == 4 || PlayerInfo[killerid][pMembru] == 4)
			{
			    if(PlayerInfo[playerid][pLider] == 6 || PlayerInfo[playerid][pMembru] == 6)
			    {
   			    SendClientMessage(killerid, TEAM_AZTECAS_COLOR, "You killed an enemy.");
   			    SendClientMessage(playerid, TEAM_AZTECAS_COLOR, "You were killed by an enemy.");
			        scoreteamforelli += 1;
			    }
			}
			if(PlayerInfo[killerid][pLider] == 6 || PlayerInfo[killerid][pMembru] == 6)
			{
			    if(PlayerInfo[playerid][pLider] == 4 || PlayerInfo[playerid][pMembru] == 4)
			    {
   			    SendClientMessage(killerid, TEAM_AZTECAS_COLOR, "You killed an enemy.");
   			    SendClientMessage(playerid, TEAM_AZTECAS_COLOR, "You were killed by an enemy.");
			        scoreteamleone += 1;
			    }
			}
		}
}
		if(vlavsgst == 1)
		{
		if(IsPlayerInArea(mw, 123.046875,-1376.953125,544.921875,-861.328125) && WarZone == 1 || IsPlayerInArea(mw, 123.046875,-1910.156250,544.921875,-1376.953125) && WarZone == 2 || IsPlayerInArea(mw, 544.921875,-1376.953125,908.203125,-861.328125) && WarZone == 3||IsPlayerInArea(mw, 544.921875,-1910.156250,908.203125,-1376.953125) && WarZone== 4 ||
IsPlayerInArea(mw, 908.203125,-1376.953125,1248.046875,-861.328125) && WarZone == 5 || IsPlayerInArea(mw, 908.203125,-1910.156250,1248.046875,-1376.953125) && WarZone == 6 || IsPlayerInArea(mw,1248.046875,-1376.953125,1605.468750,-861.328125) && WarZone == 7 || IsPlayerInArea(mw,1248.046875,-1910.156250,1605.468750,-1376.953125) && WarZone == 8 ||
IsPlayerInArea(mw, 1605.468750,-1376.953125,1962.890625,-861.328125) && WarZone == 9 || IsPlayerInArea(mw, 1605.468750,-1910.156250,1962.890625,-1376.953125) && WarZone == 10 || IsPlayerInArea(mw, 1962.890625,-1376.953125,2332.031250,-861.328125) && WarZone == 11 || IsPlayerInArea(mw, 1962.890625,-1910.156250,2332.031250,-1376.953125) && WarZone==12 ||
IsPlayerInArea(mw, 2332.031250,-1376.953125,2677.734375,-861.328125) && WarZone == 13 || IsPlayerInArea(mw, 2332.031250,-1910.156250,2677.734375,-1376.953125) && WarZone == 14 || IsPlayerInArea(mw, 2677.734375,-1376.953125,3017.578125,-861.328125) && WarZone == 15 || IsPlayerInArea(mw, 2677.734375,-1910.156250,3000.000000,-1376.953125) && WarZone == 16 ||
IsPlayerInArea(mw, 955.078125,-2337.890625,1476.562500,-1910.156250) && WarZone == 17 || IsPlayerInArea(mw, 955.078125,-2777.343750,1476.562500,-2337.890625) && WarZone == 18 || IsPlayerInArea(mw, 1476.562500,-2337.890625,1939.453125,-1910.156250) && WarZone == 19 || IsPlayerInArea(mw, 1476.562500,-2777.343750,1939.453125,-2337.890625) && WarZone == 20 ||
IsPlayerInArea(mw, 1939.453125,-2337.890625,2431.640625,-1910.156250) && WarZone == 21 || IsPlayerInArea(mw, 1939.453125,-2777.343750,2431.640625,-2337.890625) && WarZone == 22 || IsPlayerInArea(mw, 2431.640625,-2337.890625,3000.000000,-1910.156250) && WarZone == 23 || IsPlayerInArea(mw,2431.640625,-2777.343750,3000.000000,-2337.890625) && WarZone == 24)
{
			if(PlayerInfo[killerid][pLider] == 4 || PlayerInfo[killerid][pMembru] == 4)
			{
			    if(PlayerInfo[playerid][pLider] == 15 || PlayerInfo[playerid][pMembru] == 15)
			    {
   			    SendClientMessage(killerid, TEAM_AZTECAS_COLOR, "You killed an enemy.");
   			    SendClientMessage(playerid, TEAM_AZTECAS_COLOR, "You were killed by an enemy.");
			        scoreteamforelli += 1;
			    }
			}
			if(PlayerInfo[killerid][pLider] == 15 || PlayerInfo[killerid][pMembru] == 15)
			{
			    if(PlayerInfo[playerid][pLider] == 4 || PlayerInfo[playerid][pMembru] == 4)
			    {
   			    SendClientMessage(killerid, TEAM_AZTECAS_COLOR, "You killed an enemy.");
   			    SendClientMessage(playerid, TEAM_AZTECAS_COLOR, "You were killed by an enemy.");
			        scoreteamvla += 1;
			    }
			}
		}
}
		if(lsvvsblls == 1)
		{
		if(IsPlayerInArea(mw, 123.046875,-1376.953125,544.921875,-861.328125) && WarZone == 1 || IsPlayerInArea(mw, 123.046875,-1910.156250,544.921875,-1376.953125) && WarZone == 2 || IsPlayerInArea(mw, 544.921875,-1376.953125,908.203125,-861.328125) && WarZone == 3||IsPlayerInArea(mw, 544.921875,-1910.156250,908.203125,-1376.953125) && WarZone== 4 ||
IsPlayerInArea(mw, 908.203125,-1376.953125,1248.046875,-861.328125) && WarZone == 5 || IsPlayerInArea(mw, 908.203125,-1910.156250,1248.046875,-1376.953125) && WarZone == 6 || IsPlayerInArea(mw,1248.046875,-1376.953125,1605.468750,-861.328125) && WarZone == 7 || IsPlayerInArea(mw,1248.046875,-1910.156250,1605.468750,-1376.953125) && WarZone == 8 ||
IsPlayerInArea(mw, 1605.468750,-1376.953125,1962.890625,-861.328125) && WarZone == 9 || IsPlayerInArea(mw, 1605.468750,-1910.156250,1962.890625,-1376.953125) && WarZone == 10 || IsPlayerInArea(mw, 1962.890625,-1376.953125,2332.031250,-861.328125) && WarZone == 11 || IsPlayerInArea(mw, 1962.890625,-1910.156250,2332.031250,-1376.953125) && WarZone==12 ||
IsPlayerInArea(mw, 2332.031250,-1376.953125,2677.734375,-861.328125) && WarZone == 13 || IsPlayerInArea(mw, 2332.031250,-1910.156250,2677.734375,-1376.953125) && WarZone == 14 || IsPlayerInArea(mw, 2677.734375,-1376.953125,3017.578125,-861.328125) && WarZone == 15 || IsPlayerInArea(mw, 2677.734375,-1910.156250,3000.000000,-1376.953125) && WarZone == 16 ||
IsPlayerInArea(mw, 955.078125,-2337.890625,1476.562500,-1910.156250) && WarZone == 17 || IsPlayerInArea(mw, 955.078125,-2777.343750,1476.562500,-2337.890625) && WarZone == 18 || IsPlayerInArea(mw, 1476.562500,-2337.890625,1939.453125,-1910.156250) && WarZone == 19 || IsPlayerInArea(mw, 1476.562500,-2777.343750,1939.453125,-2337.890625) && WarZone == 20 ||
IsPlayerInArea(mw, 1939.453125,-2337.890625,2431.640625,-1910.156250) && WarZone == 21 || IsPlayerInArea(mw, 1939.453125,-2777.343750,2431.640625,-2337.890625) && WarZone == 22 || IsPlayerInArea(mw, 2431.640625,-2337.890625,3000.000000,-1910.156250) && WarZone == 23 || IsPlayerInArea(mw,2431.640625,-2777.343750,3000.000000,-2337.890625) && WarZone == 24)
{
			if(PlayerInfo[killerid][pLider] == 5 || PlayerInfo[killerid][pMembru] == 5)
			{
			    if(PlayerInfo[playerid][pLider] == 6 || PlayerInfo[playerid][pMembru] == 6)
			    {
   			    SendClientMessage(killerid, TEAM_AZTECAS_COLOR, "You killed an enemy.");
   			    SendClientMessage(playerid, TEAM_AZTECAS_COLOR, "You were killed by an enemy.");
			        scoreteamsindacco += 1;
			    }
			}
			if(PlayerInfo[killerid][pLider] == 6 || PlayerInfo[killerid][pMembru] == 6)
			{
			    if(PlayerInfo[playerid][pLider] == 5 || PlayerInfo[playerid][pMembru] == 5)
			    {
   			    SendClientMessage(killerid, TEAM_AZTECAS_COLOR, "You killed an enemy.");
   			    SendClientMessage(playerid, TEAM_AZTECAS_COLOR, "You were killed by an enemy.");
			        scoreteamleone += 1;
			    }
			}
		}
}
		if(vlavsblls==1)
		{
		if(IsPlayerInArea(mw, 123.046875,-1376.953125,544.921875,-861.328125) && WarZone == 1 || IsPlayerInArea(mw, 123.046875,-1910.156250,544.921875,-1376.953125) && WarZone == 2 || IsPlayerInArea(mw, 544.921875,-1376.953125,908.203125,-861.328125) && WarZone == 3||IsPlayerInArea(mw, 544.921875,-1910.156250,908.203125,-1376.953125) && WarZone== 4 ||
IsPlayerInArea(mw, 908.203125,-1376.953125,1248.046875,-861.328125) && WarZone == 5 || IsPlayerInArea(mw, 908.203125,-1910.156250,1248.046875,-1376.953125) && WarZone == 6 || IsPlayerInArea(mw,1248.046875,-1376.953125,1605.468750,-861.328125) && WarZone == 7 || IsPlayerInArea(mw,1248.046875,-1910.156250,1605.468750,-1376.953125) && WarZone == 8 ||
IsPlayerInArea(mw, 1605.468750,-1376.953125,1962.890625,-861.328125) && WarZone == 9 || IsPlayerInArea(mw, 1605.468750,-1910.156250,1962.890625,-1376.953125) && WarZone == 10 || IsPlayerInArea(mw, 1962.890625,-1376.953125,2332.031250,-861.328125) && WarZone == 11 || IsPlayerInArea(mw, 1962.890625,-1910.156250,2332.031250,-1376.953125) && WarZone==12 ||
IsPlayerInArea(mw, 2332.031250,-1376.953125,2677.734375,-861.328125) && WarZone == 13 || IsPlayerInArea(mw, 2332.031250,-1910.156250,2677.734375,-1376.953125) && WarZone == 14 || IsPlayerInArea(mw, 2677.734375,-1376.953125,3017.578125,-861.328125) && WarZone == 15 || IsPlayerInArea(mw, 2677.734375,-1910.156250,3000.000000,-1376.953125) && WarZone == 16 ||
IsPlayerInArea(mw, 955.078125,-2337.890625,1476.562500,-1910.156250) && WarZone == 17 || IsPlayerInArea(mw, 955.078125,-2777.343750,1476.562500,-2337.890625) && WarZone == 18 || IsPlayerInArea(mw, 1476.562500,-2337.890625,1939.453125,-1910.156250) && WarZone == 19 || IsPlayerInArea(mw, 1476.562500,-2777.343750,1939.453125,-2337.890625) && WarZone == 20 ||
IsPlayerInArea(mw, 1939.453125,-2337.890625,2431.640625,-1910.156250) && WarZone == 21 || IsPlayerInArea(mw, 1939.453125,-2777.343750,2431.640625,-2337.890625) && WarZone == 22 || IsPlayerInArea(mw, 2431.640625,-2337.890625,3000.000000,-1910.156250) && WarZone == 23 || IsPlayerInArea(mw,2431.640625,-2777.343750,3000.000000,-2337.890625) && WarZone == 24)
{
			if(PlayerInfo[killerid][pLider] == 5 || PlayerInfo[killerid][pMembru] == 5)
			{
			    if(PlayerInfo[playerid][pLider] == 15 || PlayerInfo[playerid][pMembru] == 15)
			    {
   			    SendClientMessage(killerid, TEAM_AZTECAS_COLOR, "You killed an enemy.");
   			    SendClientMessage(playerid, TEAM_AZTECAS_COLOR, "You were killed by an enemy.");
			        scoreteamsindacco += 1;
			    }
			}
			if(PlayerInfo[killerid][pLider] == 15 || PlayerInfo[killerid][pMembru] == 15)
			{
			    if(PlayerInfo[playerid][pLider] == 5 || PlayerInfo[playerid][pMembru] == 5)
			    {
   			    SendClientMessage(killerid, TEAM_AZTECAS_COLOR, "You killed an enemy.");
   			    SendClientMessage(playerid, TEAM_AZTECAS_COLOR, "You were killed by an enemy.");
			        scoreteamvla += 1;
			    }
			}
		}
}
		if(vlavslsv == 1)
		{
		if(IsPlayerInArea(mw, 123.046875,-1376.953125,544.921875,-861.328125) && WarZone == 1 || IsPlayerInArea(mw, 123.046875,-1910.156250,544.921875,-1376.953125) && WarZone == 2 || IsPlayerInArea(mw, 544.921875,-1376.953125,908.203125,-861.328125) && WarZone == 3||IsPlayerInArea(mw, 544.921875,-1910.156250,908.203125,-1376.953125) && WarZone== 4 ||
IsPlayerInArea(mw, 908.203125,-1376.953125,1248.046875,-861.328125) && WarZone == 5 || IsPlayerInArea(mw, 908.203125,-1910.156250,1248.046875,-1376.953125) && WarZone == 6 || IsPlayerInArea(mw,1248.046875,-1376.953125,1605.468750,-861.328125) && WarZone == 7 || IsPlayerInArea(mw,1248.046875,-1910.156250,1605.468750,-1376.953125) && WarZone == 8 ||
IsPlayerInArea(mw, 1605.468750,-1376.953125,1962.890625,-861.328125) && WarZone == 9 || IsPlayerInArea(mw, 1605.468750,-1910.156250,1962.890625,-1376.953125) && WarZone == 10 || IsPlayerInArea(mw, 1962.890625,-1376.953125,2332.031250,-861.328125) && WarZone == 11 || IsPlayerInArea(mw, 1962.890625,-1910.156250,2332.031250,-1376.953125) && WarZone==12 ||
IsPlayerInArea(mw, 2332.031250,-1376.953125,2677.734375,-861.328125) && WarZone == 13 || IsPlayerInArea(mw, 2332.031250,-1910.156250,2677.734375,-1376.953125) && WarZone == 14 || IsPlayerInArea(mw, 2677.734375,-1376.953125,3017.578125,-861.328125) && WarZone == 15 || IsPlayerInArea(mw, 2677.734375,-1910.156250,3000.000000,-1376.953125) && WarZone == 16 ||
IsPlayerInArea(mw, 955.078125,-2337.890625,1476.562500,-1910.156250) && WarZone == 17 || IsPlayerInArea(mw, 955.078125,-2777.343750,1476.562500,-2337.890625) && WarZone == 18 || IsPlayerInArea(mw, 1476.562500,-2337.890625,1939.453125,-1910.156250) && WarZone == 19 || IsPlayerInArea(mw, 1476.562500,-2777.343750,1939.453125,-2337.890625) && WarZone == 20 ||
IsPlayerInArea(mw, 1939.453125,-2337.890625,2431.640625,-1910.156250) && WarZone == 21 || IsPlayerInArea(mw, 1939.453125,-2777.343750,2431.640625,-2337.890625) && WarZone == 22 || IsPlayerInArea(mw, 2431.640625,-2337.890625,3000.000000,-1910.156250) && WarZone == 23 || IsPlayerInArea(mw,2431.640625,-2777.343750,3000.000000,-2337.890625) && WarZone == 24)
{
			if(PlayerInfo[killerid][pLider] == 6 || PlayerInfo[killerid][pMembru] == 6)
			{
			    if(PlayerInfo[playerid][pLider] == 15 || PlayerInfo[playerid][pMembru] == 15)
			    {
   			    SendClientMessage(killerid, TEAM_AZTECAS_COLOR, "You killed an enemy.");
   			    SendClientMessage(playerid, TEAM_AZTECAS_COLOR, "You were killed by an enemy.");
			        scoreteamleone += 1;
			    }
			}
			if(PlayerInfo[killerid][pLider] == 15 || PlayerInfo[killerid][pMembru] == 15)
			{
			    if(PlayerInfo[playerid][pLider] == 6 || PlayerInfo[playerid][pMembru] == 6)
			    {
   			    SendClientMessage(killerid, TEAM_AZTECAS_COLOR, "You killed an enemy.");
   			    SendClientMessage(playerid, TEAM_AZTECAS_COLOR, "You were killed by an enemy.");
			        scoreteamvla += 1;
			    }
			}
		}
}
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)