Рекомендованные сообщения



Не найдено.

1 post in this topic

Спойлер

new FireObject[3][MAX_PLAYERS]; // 2 - количество объектов огня
new randfire; // к new



//public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
	if(newkeys & KEY_FIRE && GetVehicleModel(GetPlayerVehicleID(playerid)) == 407 && (PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12))
	{
		if(IsPlayerInRangeOfPoint(playerid, 80.0,2140.443603,-1738.991210,21.441116)
			|| IsPlayerInRangeOfPoint(playerid, 80.0,2101.895507,-1930.294921,22.782485)
			|| IsPlayerInRangeOfPoint(playerid, 80.0,2425.889160,-2237.618652,26.280830)
			|| IsPlayerInRangeOfPoint(playerid, 80.0,2416.378417,-1985.084716,24.046476)
			|| IsPlayerInRangeOfPoint(playerid, 80.0,2641.770263,-2387.890136,24.778932)
			|| IsPlayerInRangeOfPoint(playerid, 80.0,2320.720214,-2550.437988,23.885475)
			|| IsPlayerInRangeOfPoint(playerid, 80.0,2335.600341,-2054.246826,24.990076)
			|| IsPlayerInRangeOfPoint(playerid, 80.0,2231.727539,-2252.143554,25.166641)
			|| IsPlayerInRangeOfPoint(playerid, 80.0,1785.287963,-2428.245849,14.961005)
			|| IsPlayerInRangeOfPoint(playerid, 80.0,2165.959960,-2393.141845,24.933002)
			|| IsPlayerInRangeOfPoint(playerid, 80.0,2008.331787,-2697.528808,14.368000)
			|| IsPlayerInRangeOfPoint(playerid, 80.0,2408.836425,-2539.366455,24.369848)
			|| IsPlayerInRangeOfPoint(playerid, 80.0,864.946228,-736.756774,44.190189)
			|| IsPlayerInRangeOfPoint(playerid, 80.0,989.356933,-646.924072,41.755367)
			|| IsPlayerInRangeOfPoint(playerid, 80.0,2377.708007,-2618.757324,24.475486)
			|| IsPlayerInRangeOfPoint(playerid, 80.0,2505.185302,-2521.605712,26.449741)
			|| IsPlayerInRangeOfPoint(playerid, 80.0,2416.872802,-1932.130737,24.026470)
			|| IsPlayerInRangeOfPoint(playerid, 80.0,2400.966064,-2056.330322,24.980081)
			|| IsPlayerInRangeOfPoint(playerid, 80.0,2233.446533,-203.589279,4.947503)
			|| IsPlayerInRangeOfPoint(playerid, 80.0,804.587951,-1369.449462,41.711311)
			|| IsPlayerInRangeOfPoint(playerid, 80.0,476.278503,-1245.229003,42.052951)
			|| IsPlayerInRangeOfPoint(playerid, 80.0,2271.538574,-1695.591552,26.043506))
		{
				SetTimer("FireOG", 30000, 0);
		}
	}
	
	
// в конец к стокам
stock Fire(playerid)
{
	randfire=random(22);
	switch (randfire)
	{
	case 0:
		{
			FireObject[0][playerid] = CreateObject(18691, 2143.970458,-1739.030151,21.210977, 0.000000,0.000000,0.000000);
			FireObject[1][playerid] = CreateObject(18691, 2140.443603,-1738.991210,21.441116, 0.000000,0.000000,0.000000);
			FireObject[2][playerid] = CreateObject(18691, 2136.896972,-1738.830078,21.411382, 0.000000,0.000000,0.000000);
			for(new i = 0; i < MAX_PLAYERS; i++)
			{
				if(PlayerInfo[i][pMember] == 12 || PlayerInfo[i][pLeader] == 12 || PlayerInfo[i][pMember] == 1 || PlayerInfo[i][pLeader] == 1 || PlayerInfo[i][pMember] == 4 || PlayerInfo[i][pLeader] == 4)
				{
					SendClientMessage(i,COLOR_AMDRED,"Диспетчер:Внимание Произошол Пожар место отмечены на карте");
					SetPlayerCheckpoint(i, 2140.443603,-1738.991210,21.441116, 3.0);
					SetTimer("FireOG", 1000*60*5, 0);
				}
			}
		}
	case 1:
		{
			FireObject[0][playerid] = CreateObject(18691, 2102.085205,-1933.675781,22.632503, 0.000000,0.000000,0.000000);
			FireObject[1][playerid] = CreateObject(18691, 2101.895507,-1930.294921,22.782485, 0.000000,0.000000,0.000000);
			FireObject[2][playerid] = CreateObject(18691, 2102.296386,-1926.746582,22.782499, 0.000000,0.000000,0.000000);
			for(new i = 0; i < MAX_PLAYERS; i++)
			{
				if(PlayerInfo[i][pMember] == 12 || PlayerInfo[i][pLeader] == 12)
				{
					SendClientMessage(i,COLOR_AMDRED,"Диспетчер:Внимание Произошол Пожар место отмечены на карте");
					SetPlayerCheckpoint(i, 2101.895507,-1930.294921,22.782485, 3.0);
					SetTimer("FireOG", 1000*60*5, 0);
				}
			}
		}
	case 2:
		{
			FireObject[0][playerid] = CreateObject(18692, 2425.816894,-2241.410156,26.345445, 0.000000,0.000000,0.000000);
			FireObject[1][playerid] = CreateObject(18692, 2425.889160,-2237.618652,26.280830, 0.000000,0.000000,0.000000);
			FireObject[2][playerid] = CreateObject(18692, 2425.588623,-2234.192871,26.959716, 0.000000,0.000000,0.000000);
			for(new i = 0; i < MAX_PLAYERS; i++)
			{
				if(PlayerInfo[i][pMember] == 12 || PlayerInfo[i][pLeader] == 12 || PlayerInfo[i][pMember] == 1 || PlayerInfo[i][pLeader] == 1 || PlayerInfo[i][pMember] == 4 || PlayerInfo[i][pLeader] == 4)
				{
					SendClientMessage(i,COLOR_AMDRED,"Диспетчер:Внимание Произошол Пожар место отмечены на карте");
					SetPlayerCheckpoint(i, 2425.889160,-2237.618652,26.280830, 3.0);
					SetTimer("FireOG", 1000*60*5, 0);
				}
			}
		}
	case 3:
		{
			FireObject[0][playerid] = CreateObject(18691, 2416.968750,-1988.036499,23.416475, 0.000000,0.000000,0.000000);
			FireObject[1][playerid] = CreateObject(18692, 2416.378417,-1985.084716,24.046476, 0.000000,0.000000,0.000000);
			FireObject[2][playerid] = CreateObject(18691, 2417.286132,-1981.875122,23.336475, 0.000000,0.000000,0.000000);
			for(new i = 0; i < MAX_PLAYERS; i++)
			{
				if(PlayerInfo[i][pMember] == 12 || PlayerInfo[i][pLeader] == 12 || PlayerInfo[i][pMember] == 1 || PlayerInfo[i][pLeader] == 1 || PlayerInfo[i][pMember] == 4 || PlayerInfo[i][pLeader] == 4)
				{
					SendClientMessage(i,COLOR_AMDRED,"Диспетчер:Внимание Произошол Пожар место отмечены на карте");
					SetPlayerCheckpoint(i, 2416.378417,-1985.084716,24.046476, 3.0);
					SetTimer("FireOG", 1000*60*5, 0);
				}
			}
		}
	case 4:
		{
			FireObject[0][playerid] = CreateObject(18691, 2640.487792,-2383.208984,23.806564, 0.000000,0.000000,0.000000);
			FireObject[1][playerid] = CreateObject(18692, 2641.770263,-2387.890136,24.778932, 0.000000,0.000000,0.000000);
			FireObject[2][playerid] = CreateObject(18691, 2640.163330,-2392.623291,23.796571, 0.000000,0.000000,0.000000);
			for(new i = 0; i < MAX_PLAYERS; i++)
			{
				if(PlayerInfo[i][pMember] == 12 || PlayerInfo[i][pLeader] == 12 || PlayerInfo[i][pMember] == 1 || PlayerInfo[i][pLeader] == 1 || PlayerInfo[i][pMember] == 4 || PlayerInfo[i][pLeader] == 4)
				{
					SendClientMessage(i,COLOR_AMDRED,"Диспетчер:Внимание Произошол Пожар место отмечены на карте");
					SetPlayerCheckpoint(i, 2641.770263,-2387.890136,24.778932, 3.0);
					SetTimer("FireOG", 1000*60*5, 0);
				}
			}
		}
	case 5:
		{
			FireObject[0][playerid] = CreateObject(18691, 2323.385253,-2550.761962,24.628599, 0.000000,0.000000,0.000000);
			FireObject[1][playerid] = CreateObject(18691, 2320.720214,-2550.437988,23.885475, 0.000000,0.000000,0.000000);
			FireObject[2][playerid] = CreateObject(18691, 2317.824951,-2550.416259,24.705469, 0.000000,0.000000,0.000000);
			for(new i = 0; i < MAX_PLAYERS; i++)
			{
				if(PlayerInfo[i][pMember] == 12 || PlayerInfo[i][pLeader] == 12 || PlayerInfo[i][pMember] == 1 || PlayerInfo[i][pLeader] == 1 || PlayerInfo[i][pMember] == 4 || PlayerInfo[i][pLeader] == 4)
				{
					SendClientMessage(i,COLOR_AMDRED,"Диспетчер:Внимание Произошол Пожар место отмечены на карте");
					SetPlayerCheckpoint(i, 2320.720214,-2550.437988,23.885475, 3.0);
					SetTimer("FireOG", 1000*60*5, 0);
				}
			}
		}
	case 6:
		{
			FireObject[0][playerid] = CreateObject(18691, 2335.761718,-2056.505859,24.864759, 0.000000,0.000000,0.000000);
			FireObject[1][playerid] = CreateObject(18691, 2335.600341,-2054.246826,24.990076, 0.000000,0.000000,0.000000);
			FireObject[2][playerid] = CreateObject(18692, 2337.213867,-2051.095214,25.470066, 0.000000,0.000000,0.000000);
			for(new i = 0; i < MAX_PLAYERS; i++)
			{
				if(PlayerInfo[i][pMember] == 12 || PlayerInfo[i][pLeader] == 12 || PlayerInfo[i][pMember] == 1 || PlayerInfo[i][pLeader] == 1 || PlayerInfo[i][pMember] == 4 || PlayerInfo[i][pLeader] == 4)
				{
					SendClientMessage(i,COLOR_AMDRED,"Диспетчер:Внимание Произошол Пожар место отмечены на карте");
					SetPlayerCheckpoint(i, 2335.600341,-2054.246826,24.990076, 3.0);
					SetTimer("FireOG", 1000*60*5, 0);
				}
			}
		}
	case 7:
		{
			FireObject[0][playerid] = CreateObject(18692, 2228.859619,-2254.330566,25.556621, 0.000000,0.000000,0.000000);
			FireObject[1][playerid] = CreateObject(18691, 2231.727539,-2252.143554,25.166641, 0.000000,0.000000,0.000000);
			FireObject[2][playerid] = CreateObject(18692, 2233.300781,-2248.730957,26.056636, 0.000000,0.000000,0.000000);

			for(new i = 0; i < MAX_PLAYERS; i++)
			{
				if(PlayerInfo[i][pMember] == 12 || PlayerInfo[i][pLeader] == 12 || PlayerInfo[i][pMember] == 1 || PlayerInfo[i][pLeader] == 1 || PlayerInfo[i][pMember] == 4 || PlayerInfo[i][pLeader] == 4)
				{
					SendClientMessage(i,COLOR_AMDRED,"Диспетчер:Внимание Произошол Пожар место отмечены на карте");
					SetPlayerCheckpoint(i, 2231.727539,-2252.143554,25.166641, 3.0);
					SetTimer("FireOG", 1000*60*5, 0);
				}
			}
		}
	case 8:
		{
			FireObject[0][playerid] = CreateObject(18691, 1785.302490,-2431.464599,14.791009, 0.000000,0.000000,0.000000);
			FireObject[1][playerid] = CreateObject(18691, 1785.287963,-2428.245849,14.961005, 0.000000,0.000000,0.000000);
			FireObject[2][playerid] = CreateObject(18691, 1784.789428,-2434.550048,14.830996, 0.000000,0.000000,0.000000);

			for(new i = 0; i < MAX_PLAYERS; i++)
			{
				if(PlayerInfo[i][pMember] == 12 || PlayerInfo[i][pLeader] == 12 || PlayerInfo[i][pMember] == 1 || PlayerInfo[i][pLeader] == 1 || PlayerInfo[i][pMember] == 4 || PlayerInfo[i][pLeader] == 4)
				{
					SendClientMessage(i,COLOR_AMDRED,"Диспетчер:Внимание Произошол Пожар место отмечены на карте");
					SetPlayerCheckpoint(i, 1785.287963,-2428.245849,14.961005, 3.0);
					SetTimer("FireOG", 1000*60*5, 0);
				}
			}
		}
	case 9:
		{
			FireObject[0][playerid] = CreateObject(18691, 2159.890380,-2392.966796,24.933012, 0.000000,0.000000,0.000000);
			FireObject[1][playerid] = CreateObject(18691, 2165.959960,-2393.141845,24.933002, 0.000000,0.000000,0.000000);
			FireObject[2][playerid] = CreateObject(18692, 2162.983886,-2391.877441,25.702989, 0.000000,0.000000,0.000000);
			for(new i = 0; i < MAX_PLAYERS; i++)
			{
				if(PlayerInfo[i][pMember] == 12 || PlayerInfo[i][pLeader] == 12 || PlayerInfo[i][pMember] == 1 || PlayerInfo[i][pLeader] == 1 || PlayerInfo[i][pMember] == 4 || PlayerInfo[i][pLeader] == 4)
				{
					SendClientMessage(i,COLOR_AMDRED,"Диспетчер:Внимание Произошол Пожар место отмечены на карте");
					SetPlayerCheckpoint(i, 2165.959960,-2393.141845,24.933002, 3.0);
					SetTimer("FireOG", 1000*60*5, 0);
				}
			}
		}
	case 10:
		{
			FireObject[0][playerid] = CreateObject(18692, 2011.643432,-2697.792968,14.597640, 0.000000,0.000000,0.000000);
			FireObject[1][playerid] = CreateObject(18691, 2008.331787,-2697.528808,14.368000, 0.000000,0.000000,0.000000);
			FireObject[2][playerid] = CreateObject(18691, 2019.212524,-2698.159179,14.034847, 0.000000,0.000000,0.000000);

			for(new i = 0; i < MAX_PLAYERS; i++)
			{
				if(PlayerInfo[i][pMember] == 12 || PlayerInfo[i][pLeader] == 12 || PlayerInfo[i][pMember] == 1 || PlayerInfo[i][pLeader] == 1 || PlayerInfo[i][pMember] == 4 || PlayerInfo[i][pLeader] == 4)
				{
					SendClientMessage(i,COLOR_AMDRED,"Диспетчер:Внимание Произошол Пожар место отмечены на карте");
					SetPlayerCheckpoint(i, 2008.331787,-2697.528808,14.368000, 3.0);
					SetTimer("FireOG", 1000*60*5, 0);
				}
			}
		}
	case 11:
		{
			FireObject[0][playerid] = CreateObject(18691, 2412.221923,-2539.815917,24.339855, 0.000000,0.000000,0.000000);
			FireObject[1][playerid] = CreateObject(18691, 2408.836425,-2539.366455,24.369848, 0.000000,0.000000,0.000000);
			FireObject[2][playerid] = CreateObject(18691, 2405.402587,-2539.447753,24.389852, 0.000000,0.000000,0.000000);

			for(new i = 0; i < MAX_PLAYERS; i++)
			{
				if(PlayerInfo[i][pMember] == 12|| PlayerInfo[i][pLeader] == 12 || PlayerInfo[i][pMember] == 1 || PlayerInfo[i][pLeader] == 1 || PlayerInfo[i][pMember] == 4 || PlayerInfo[i][pLeader] == 4)
				{
					SendClientMessage(i,COLOR_AMDRED,"Диспетчер:Внимание Произошол Пожар место отмечены на карте");
					SetPlayerCheckpoint(i, 2408.836425,-2539.366455,24.369848, 3.0);
					SetTimer("FireOG", 1000*60*5, 0);
				}
			}
		}
	case 12:
		{
			FireObject[0][playerid] = CreateObject(18691, 861.845153,-737.744506,44.268367, 0.000000,0.000000,0.000000);
			FireObject[1][playerid] = CreateObject(18691, 864.946228,-736.756774,44.190189, 0.000000,0.000000,0.000000);
			FireObject[2][playerid] = CreateObject(18691, 868.213439,-735.614196,44.311656, 0.000000,0.000000,0.000000);

			for(new i = 0; i < MAX_PLAYERS; i++)
			{
				if(PlayerInfo[i][pMember] == 12 || PlayerInfo[i][pLeader] == 12 || PlayerInfo[i][pMember] == 1 || PlayerInfo[i][pLeader] == 1 || PlayerInfo[i][pMember] == 4 || PlayerInfo[i][pLeader] == 4)
				{
					SendClientMessage(i,COLOR_AMDRED,"Диспетчер:Внимание Произошол Пожар место отмечены на карте");
					SetPlayerCheckpoint(i, 864.946228,-736.756774,44.190189, 3.0);
					SetTimer("FireOG", 1000*60*5, 0);
				}
			}
		}
	case 13:
		{
			FireObject[0][playerid] = CreateObject(18691, 986.127441,-646.291076,41.755367, 0.000000,0.000000,0.000000);
			FireObject[1][playerid] = CreateObject(18692, 989.356933,-646.924072,41.755367, 0.000000,0.000000,0.000000);
			FireObject[2][playerid] = CreateObject(18692, 982.089355,-649.297424,40.255378, 0.000000,0.000000,0.000000);

			for(new i = 0; i < MAX_PLAYERS; i++)
			{
				if(PlayerInfo[i][pMember] == 12 || PlayerInfo[i][pLeader] == 12 || PlayerInfo[i][pMember] == 1 || PlayerInfo[i][pLeader] == 1 || PlayerInfo[i][pMember] == 4 || PlayerInfo[i][pLeader] == 4)
				{
					SendClientMessage(i,COLOR_AMDRED,"Диспетчер:Внимание Произошол Пожар место отмечены на карте");
					SetPlayerCheckpoint(i, 989.356933,-646.924072,41.755367, 3.0);
					SetTimer("FireOG", 1000*60*5, 0);
				}
			}
		}
	case 14:
		{
			FireObject[0][playerid] = CreateObject(18692, 469.655914,-1243.086914,41.515975, 0.000000,0.000000,0.000000);
			FireObject[1][playerid] = CreateObject(18692, 476.278503,-1245.229003,42.052951, 0.000000,0.000000,0.000000);
			FireObject[2][playerid] = CreateObject(18691, 473.173492,-1243.897705,43.270324, 0.000000,0.000000,0.000000);

			for(new i = 0; i < MAX_PLAYERS; i++)
			{
				if(PlayerInfo[i][pMember] == 12 || PlayerInfo[i][pLeader] == 12 || PlayerInfo[i][pMember] == 1 || PlayerInfo[i][pLeader] == 1 || PlayerInfo[i][pMember] == 4 || PlayerInfo[i][pLeader] == 4)
				{
					SendClientMessage(i,COLOR_AMDRED,"Диспетчер:Внимание Произошол Пожар место отмечены на карте");
					SetPlayerCheckpoint(i, 476.278503,-1245.229003,42.052951, 3.0);
					SetTimer("FireOG", 1000*60*5, 0);
				}
			}
		}
	case 15:
		{
			FireObject[0][playerid] = CreateObject(18692, 808.743591,-1370.630493,41.711311, 0.000000,0.000000,0.000000);
			FireObject[1][playerid] = CreateObject(18692, 804.587951,-1369.449462,41.711311, 0.000000,0.000000,0.000000);
			FireObject[2][playerid] = CreateObject(18692, 802.102172,-1374.844482,41.711311, 0.000000,0.000000,0.000000);

			for(new i = 0; i < MAX_PLAYERS; i++)
			{
				if(PlayerInfo[i][pMember] == 12 || PlayerInfo[i][pLeader] == 12 || PlayerInfo[i][pMember] == 1 || PlayerInfo[i][pLeader] == 1 || PlayerInfo[i][pMember] == 4 || PlayerInfo[i][pLeader] == 4)
				{
					SendClientMessage(i,COLOR_AMDRED,"Диспетчер:Внимание Произошол Пожар место отмечены на карте");
					SetPlayerCheckpoint(i, 804.587951,-1369.449462,41.711311, 3.0);
					SetTimer("FireOG", 1000*60*5, 0);
				}
			}
		}
	case 16:
		{
			FireObject[0][playerid] = CreateObject(18692, 2238.256347,-201.645675,2.769158, 0.000000,0.000000,0.000000);
			FireObject[1][playerid] = CreateObject(18692, 2233.446533,-203.589279,4.947503, 0.000000,0.000000,0.000000);
			FireObject[2][playerid] = CreateObject(18692, 2229.761474,-203.771987,4.820680, 0.000000,0.000000,0.000000);

			for(new i = 0; i < MAX_PLAYERS; i++)
			{
				if(PlayerInfo[i][pMember] == 12 || PlayerInfo[i][pLeader] == 12 || PlayerInfo[i][pMember] == 1 || PlayerInfo[i][pLeader] == 1 || PlayerInfo[i][pMember] == 4 || PlayerInfo[i][pLeader] == 4)
				{
					SendClientMessage(i,COLOR_AMDRED,"Диспетчер:Внимание Произошол Пожар место отмечены на карте");
					SetPlayerCheckpoint(i, 2233.446533,-203.589279,4.947503, 3.0);
					SetTimer("FireOG", 1000*60*5, 0);
				}
			}
		}
	case 17:
		{
			FireObject[0][playerid] = CreateObject(18692, 2401.794189,-2059.123779,25.180076, 0.000000,0.000000,0.000000);
			FireObject[1][playerid] = CreateObject(18691, 2400.966064,-2056.330322,24.980081, 0.000000,0.000000,0.000000);
			FireObject[2][playerid] = CreateObject(18691, 2400.927978,-2062.294189,25.040081, 0.000000,0.000000,0.000000);

			for(new i = 0; i < MAX_PLAYERS; i++)
			{
				if(PlayerInfo[i][pMember] == 12 || PlayerInfo[i][pLeader] == 12 || PlayerInfo[i][pMember] == 1 || PlayerInfo[i][pLeader] == 1 || PlayerInfo[i][pMember] == 4 || PlayerInfo[i][pLeader] == 4)
				{
					SendClientMessage(i,COLOR_AMDRED,"Диспетчер:Внимание Произошол Пожар место отмечены на карте");
					SetPlayerCheckpoint(i, 2400.966064,-2056.330322,24.980081, 3.0);
					SetTimer("FireOG", 1000*60*5, 0);
				}
			}
		}
	case 18:
		{
			FireObject[0][playerid] = CreateObject(18691, 2416.675537,-1929.141723,23.906469, 0.000000,0.000000,0.000000);
			FireObject[1][playerid] = CreateObject(18691, 2416.872802,-1932.130737,24.026470, 0.000000,0.000000,0.000000);
			FireObject[2][playerid] = CreateObject(18691, 2416.650634,-1935.202270,23.836475, 0.000000,0.000000,0.000000);

			for(new i = 0; i < MAX_PLAYERS; i++)
			{
				if(PlayerInfo[i][pMember] == 12 || PlayerInfo[i][pLeader] == 12 || PlayerInfo[i][pMember] == 1 || PlayerInfo[i][pLeader] == 1 || PlayerInfo[i][pMember] == 4 || PlayerInfo[i][pLeader] == 4)
				{
					SendClientMessage(i,COLOR_AMDRED,"Диспетчер:Внимание Произошол Пожар место отмечены на карте");
					SetPlayerCheckpoint(i, 2416.872802,-1932.130737,24.026470, 3.0);
					SetTimer("FireOG", 1000*60*5, 0);
				}
			}
		}
	case 19:
		{
			FireObject[0][playerid] = CreateObject(18692, 2506.266601,-2517.874267,26.429740, 0.000000,0.000000,0.000000);
			FireObject[1][playerid] = CreateObject(18691, 2505.185302,-2521.605712,26.449741, 0.000000,0.000000,0.000000);
			FireObject[2][playerid] = CreateObject(18692, 2505.182617,-2514.110107,27.371980, 0.000000,0.000000,0.000000);

			for(new i = 0; i < MAX_PLAYERS; i++)
			{
				if(PlayerInfo[i][pMember] == 12 || PlayerInfo[i][pLeader] == 12 || PlayerInfo[i][pMember] == 1 || PlayerInfo[i][pLeader] == 1 || PlayerInfo[i][pMember] == 4 || PlayerInfo[i][pLeader] == 4)
				{
					SendClientMessage(i,COLOR_AMDRED,"Диспетчер:Внимание Произошол Пожар место отмечены на карте");
					SetPlayerCheckpoint(i, 2505.185302,-2521.605712,26.449741, 3.0);
					SetTimer("FireOG", 1000*60*5, 0);
				}
			}
		}
	case 20:
		{
			FireObject[0][playerid] = CreateObject(18691, 2377.027343,-2615.826660,24.495489, 0.000000,0.000000,0.000000);
			FireObject[1][playerid] = CreateObject(18691, 2377.708007,-2618.757324,24.475486, 0.000000,0.000000,0.000000);
			FireObject[2][playerid] = CreateObject(18692, 2376.442138,-2613.052734,25.505481, 0.000000,0.000000,0.000000);

			for(new i = 0; i < MAX_PLAYERS; i++)
			{
				if(PlayerInfo[i][pMember] == 12 || PlayerInfo[i][pLeader] == 12 || PlayerInfo[i][pMember] == 1 || PlayerInfo[i][pLeader] == 1 || PlayerInfo[i][pMember] == 4 || PlayerInfo[i][pLeader] == 4)
				{
					SendClientMessage(i,COLOR_AMDRED,"Диспетчер:Внимание Произошол Пожар место отмечены на карте");
					SetPlayerCheckpoint(i, 2377.708007,-2618.757324,24.475486, 3.0);
					SetTimer("FireOG", 1000*60*5, 0);
				}
			}
		}
	case 21:
		{
			FireObject[0][playerid] = CreateObject(18691, 2270.788574,-1692.023315,26.293502, 0.000000,0.000000,0.000000);
			FireObject[1][playerid] = CreateObject(18692, 2271.538574,-1695.591552,26.043506, 0.000000,0.000000,0.000000);
			FireObject[2][playerid] = CreateObject(18692, 2276.000732,-1695.162719,25.043506, 0.000000,0.000000,0.000000);

			for(new i = 0; i < MAX_PLAYERS; i++)
			{
				if(PlayerInfo[i][pMember] == 12 || PlayerInfo[i][pLeader] == 12 || PlayerInfo[i][pMember] == 1 || PlayerInfo[i][pLeader] == 1 || PlayerInfo[i][pMember] == 4 || PlayerInfo[i][pLeader] == 4)
				{
					SendClientMessage(i,COLOR_AMDRED,"Диспетчер:Внимание Произошол Пожар место отмечены на карте");
					SetPlayerCheckpoint(i, 2271.538574,-1695.591552,26.043506, 3.0);
					SetTimer("FireOG", 1000*60*5, 0);
				}
			}
		}
	}
	return 1;
}

stock FireOG(playerid)
{
	for(new i = 0; i < MAX_PLAYERS; i++)
	{
		DestroyObject(FireObject[0][i]);
		DestroyObject(FireObject[1][i]);
		DestroyObject(FireObject[2][i]);
		if(PlayerInfo[i][pMember] == 12 || PlayerInfo[i][pLeader] == 12 || PlayerInfo[i][pMember] == 1 || PlayerInfo[i][pLeader] == 1 || PlayerInfo[i][pMember] == 4 || PlayerInfo[i][pLeader] == 4)
		{
			DisablePlayerCheckpoint(i);
		}
	}
	return true;
}

Лидерки прописал всё под свой мод

 

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • Dworkin
      By Dworkin
      Привет. Мне тяжело дается понимание строк в pawn из за не динамических массивов.
      #include enum pInfo { pRangName[25] } new players[MAX_PLAYERS][pInfo]; new string[20]; main() { format(string, sizeof(string), "Салага"); printf(string); players[0][pRangName] = string; } выдает ошибку "error 047: array sizes do not match, or destination array is too small" на строку "players[0][pRangName] = string;"
      Я понимаю что в ошибке говорится что размер не совпадает, но не могу понять как это сделать в павне