Если Вы нашли ответ на вопрос, пожалуйста, пометьте необходимый ответ лучшим (галочка сбоку от сообщения) и поблагодарите автора этого ответа поднятием репутации (плюс в нижней правой части сообщения). Спасибо.
Подробнее:
FAQ по форуму
Как пометить ответ лучшим

Вопросы

Помогите решить проблему, не работает или работает через раз, вот код:
 

Спойлер

	    case D_JOB+42:
		{
			if(!response) return 1;
			switch(listitem)
			{
			    case 0:
				{
				    if(PI[playerid][pLic][0] == 1) return SCM(playerid, COLOR_GREY, "У вас уже имеются водительские права!");
					ShowPlayerDialog(playerid, D_JOB+43, 0, " ", "\n\n{ffffff}Вы хотите сдать экзамен на управление наземным транспортом?\n\nСтоимость: {63BD4E}Бесплатно!\n\n", "Да", "Нет");
				}
				case 1:
				{
				    if(PI[playerid][pLic][2] == 1) return SCM(playerid, COLOR_GREY, "У вас уже имеются воздушные права!");
					ShowPlayerDialog(playerid, D_JOB+44, 0, " ", "\n\n{ffffff}Вы хотите сдать экзамен на управление воздушным транспортом?\n\nСтоимость: {63BD4E}20.000 руб\n\n", "Да", "Нет");
				}
				case 2:
				{
				    if(PI[playerid][pLic][1] == 1) return SCM(playerid, COLOR_GREY, "У вас уже имеются водные права!");
					ShowPlayerDialog(playerid, D_JOB+45, 0, " ", "\n\n{ffffff}Вы хотите сдать экзамен на управление водным транспортом?\n\nСтоимость: {63BD4E}15.000 руб\n\n", "Да", "Нет");
				}
			}
			return 1;
		}
	    case D_JOB+43:
	    {
	        if(!response) return 1;
			if(GetMoney(playerid) < 0) return SCM(playerid, COLOR_GREY, "Недостаточно средств!");
			SCM(playerid, COLOR_BLUE, "Вы начали прохождение экзамена на управление наземным транспортом");
			SCM(playerid, COLOR_BLUE, "Выходите во двор и садитесь в свободный транспорт");
			SCM(playerid, COLOR_BLUE, "(( Если не появился чекпоинт после того как сели в машину, смените машину! ))");
			SCM(playerid, COLOR_BLUE, "(( Менять машину только на красную! ))");
			SetPVarInt(playerid, "DrivingTest", 1);
			pPressed[playerid] = 0;
			UseGPS[playerid] = true;
			for(new i; i < 4; i++) TextDrawShowForPlayer(playerid, GPSEnabled[i]);
    		DisablePlayerRaceCheckpoint(playerid);
			SetPlayerRaceCheckpoint(playerid,1,2473.4873,-945.2845,2.0069,0.0,0.0,0.0,5.0);
			return 1;
	    }
        case D_JOB+44:
	    {
	        if(!response) return 1;
			if(GetMoney(playerid) < 999999999999999999999) return SCM(playerid, COLOR_GREY, "Врменно закрыто!");
			SCM(playerid, COLOR_BLUE, "Вы начали прохождение экзамена на управление воздушным транспортом");
			SCM(playerid, COLOR_BLUE, "Выходите во двор и садитесь в свободный вертолёт.");
			SetPVarInt(playerid, "FlyTest", 1);
			TransferMoney(playerid, -1, 20000);
			pPressed[playerid] = 0;
			UseGPS[playerid] = true;
			for(new i; i < 4; i++) TextDrawShowForPlayer(playerid, GPSEnabled[i]);
    		DisablePlayerRaceCheckpoint(playerid);
			SetPlayerRaceCheckpoint(playerid,1,2447.0251,-1000.7596,2.2100,0.0,0.0,0.0,5.0);
			return 1;
	    }
        case D_JOB+45:
	    {
	        if(!response) return 1;
			if(GetMoney(playerid) < 999999999999999999999) return SCM(playerid, COLOR_GREY, "Временно закрыто!!");
			SCM(playerid, COLOR_BLUE, "Вы начали прохождение экзамена на управление водным транспортом");
			SCM(playerid, COLOR_BLUE, "Выходите во двор и садитесь в свободную лодку.");
			SetPVarInt(playerid, "WaterTest", 1);
			TransferMoney(playerid, -1, 15000);
			pPressed[playerid] = 0;
			UseGPS[playerid] = true;
			for(new i; i < 4; i++) TextDrawShowForPlayer(playerid, GPSEnabled[i]);
    		DisablePlayerRaceCheckpoint(playerid);
			SetPlayerRaceCheckpoint(playerid,1,2453.6213,-1052.7203,1.5700,0.0,0.0,0.0,5.0);
			return 1;
	    }

 

 

Поделиться сообщением


Ссылка на сообщение

10 ответов на этот вопрос

  • 0

@Daniil Roslyakov Замените свой код на тот, который я скинул и все. Шапка я имел ввиду начало паблика, т.е. первые строки, в данном случае около 10 первых строк нужно заменить. 

Поделиться сообщением


Ссылка на сообщение
  • 0

Что конкретно не работает? 

Поделиться сообщением


Ссылка на сообщение
  • 0

@DEST при сдаче прав когда сажусь в машину любую, не чего не срабатывает, раньше работало

Поделиться сообщением


Ссылка на сообщение
  • 0

@Daniil Roslyakov что значит "ничего не срабатывает". Конкретней, будьте добры. Что именно не появляется / работает не так? 

Поделиться сообщением


Ссылка на сообщение
  • 0

@DEST Вот стоят машины, специальные для сдачи прав, когда сажусь в машину нету метки куда ехать (Не появляется), и так с каждой машиной которая там стоит

Поделиться сообщением


Ссылка на сообщение
  • 0

@Daniil Roslyakov Вот так бы сразу ;)

Скиньте паблик OnPlayerEnterRaceCheckpoint

Поделиться сообщением


Ссылка на сообщение
  • 0

@DEST 

Спойлер

public OnPlayerEnterRaceCheckpoint(playerid)
{
	if(UseGPS[playerid])
	{
		SCM(playerid, COLOR_YELLOW, "Вы достигли места назначения");
   		DisablePlayerRaceCheckpoint(playerid);
	   	UseGPS[playerid] = false;
	   	for(new i; i < 4; i++) TextDrawHideForPlayer(playerid, GPSEnabled[i]);
	   	return 1;
	}
	if(GetPVarInt(playerid, "findplayer") == 1)
	{
		SCM(playerid, COLOR_BLUE, "Вы достигли места назначения!");
		DeletePVar(playerid, "findplayer");
		DisablePlayerRaceCheckpoint(playerid);
		return 1;
	}
	if(GetPVarInt(playerid, "Home") == 1)
	{
		SCM(playerid, COLOR_YELLOW, "Вы достигли места назначения");
		DeletePVar(playerid, "Home");
		DisablePlayerRaceCheckpoint(playerid);
	}
	if(GetPVarInt(playerid, "PriceBus") > 0)
	{
	    DisablePlayerRaceCheckpoint(playerid);
		new type = GetPVarInt(playerid, "TypeBus"), e_type, name[32];
		switch(GetPVarInt(playerid, "TypeBus"))
		{
			case 1: name = "Автовокзал - Автошкола";
			case 2: name = "Автовокзал - Арзамас";
			case 3: name = "Автовокзал - Оружейный завод";
			case 4: name = "Автовокзал - Шахта";
			case 5: name = "Автовокзал - Лесопилка";
		}
		switch(type)
		{
			case 1:
			{
				if(pPressed[playerid] == 0 || pPressed[playerid] == 3 || pPressed[playerid] == 5 || pPressed[playerid] == 8 || pPressed[playerid] == 11 || pPressed[playerid] == 13 || pPressed[playerid] == 21 || pPressed[playerid] == 25 || pPressed[playerid] == 34)
				{
					if(GetPVarInt(playerid, "BusStop") == 0)
					{
					    new string[128];
						SetPVarInt(playerid, "TimeBus", 11);
						format(string, sizeof(string), "Автобус по маршруту %s отправляется через 10 секунд",name);
						AutoStationBusInfo(playerid, string);
						GameTextForPlayer(playerid, "~r~stop", 1000, 1);
						PlayerPlaySound(playerid, 1058, 0.0, 0.0, 0.0);
					}
					else
					{
						if(pPressed[playerid] == 34) pPressed[playerid] = 0, SCM(playerid,COLOR_LIGHTGREEN,"Вы закончили свой маршрут. Если Вы не хотите продолжать его, введите /end");
					    else pPressed[playerid]++;
					    new i = pPressed[playerid];
					    if(pPressed[playerid] == 0 || pPressed[playerid] == 3 || pPressed[playerid] == 5 || pPressed[playerid] == 8 || pPressed[playerid] == 11 || pPressed[playerid] == 13 || pPressed[playerid] == 21 || pPressed[playerid] == 25 || pPressed[playerid] == 34) e_type = 1;
				        else e_type = 0;
						SetPlayerRaceCheckpoint(playerid,e_type,Vokzal_School[i][0],Vokzal_School[i][1],Vokzal_School[i][2],Vokzal_School[i+1][0],Vokzal_School[i+1][1],Vokzal_School[i+1][2],5.0);
						SetPVarInt(playerid, "BusStop", 0);
					}
				}
				else
				{
				    pPressed[playerid]++;
					SetPVarInt(playerid, "BusMoney", GetPVarInt(playerid, "BusMoney") + 120);
					new i = pPressed[playerid];
					if(pPressed[playerid] == 0 || pPressed[playerid] == 3 || pPressed[playerid] == 5 || pPressed[playerid] == 8 || pPressed[playerid] == 11 || pPressed[playerid] == 13 || pPressed[playerid] == 21 || pPressed[playerid] == 25 || pPressed[playerid] == 34) e_type = 1;
				    else e_type = 0;
					SetPlayerRaceCheckpoint(playerid,e_type,Vokzal_School[i][0],Vokzal_School[i][1],Vokzal_School[i][2],Vokzal_School[i+1][0],Vokzal_School[i+1][1],Vokzal_School[i+1][2],5.0);
				}
			}
			case 2:
			{
				if(pPressed[playerid] == 0 || pPressed[playerid] == 5 || pPressed[playerid] == 14 || pPressed[playerid] == 17 || pPressed[playerid] == 31 || pPressed[playerid] == 36 || pPressed[playerid] == 40 || pPressed[playerid] == 43 || pPressed[playerid] == 46 || pPressed[playerid] == 53 || pPressed[playerid] == 56 || pPressed[playerid] == 74)
				{
					if(GetPVarInt(playerid, "BusStop") == 0)
					{
					    new string[128];
						SetPVarInt(playerid, "TimeBus", 11);
						format(string, sizeof(string), "Автобус по маршруту %s отправляется через 10 секунд",name);
						AutoStationBusInfo(playerid, string);
						GameTextForPlayer(playerid, "~r~stop", 1000, 1);
						PlayerPlaySound(playerid, 1058, 0.0, 0.0, 0.0);
					}
					else
					{
						if(pPressed[playerid] == 74) pPressed[playerid] = 0, SCM(playerid,COLOR_LIGHTGREEN,"Вы закончили свой маршрут. Если Вы не хотите продолжать его, введите /end");
					    else pPressed[playerid]++;
					    new i = pPressed[playerid];
					    if(pPressed[playerid] == 0 || pPressed[playerid] == 5 || pPressed[playerid] == 14 || pPressed[playerid] == 17 || pPressed[playerid] == 31 || pPressed[playerid] == 36 || pPressed[playerid] == 40 || pPressed[playerid] == 43 || pPressed[playerid] == 46 || pPressed[playerid] == 53 || pPressed[playerid] == 56 || pPressed[playerid] == 74) e_type = 1;
				        else e_type = 0;
						SetPlayerRaceCheckpoint(playerid,e_type,Vokzal_Arzamas[i][0],Vokzal_Arzamas[i][1],Vokzal_Arzamas[i][2],Vokzal_Arzamas[i+1][0],Vokzal_Arzamas[i+1][1],Vokzal_Arzamas[i+1][2],5.0);
						SetPVarInt(playerid, "BusStop", 0);
					}
				}
				else
				{
				    pPressed[playerid]++;
					SetPVarInt(playerid, "BusMoney", GetPVarInt(playerid, "BusMoney") + 90);
					new i = pPressed[playerid];
					if(pPressed[playerid] == 0 || pPressed[playerid] == 5 || pPressed[playerid] == 14 || pPressed[playerid] == 17 || pPressed[playerid] == 31 || pPressed[playerid] == 36 || pPressed[playerid] == 40 || pPressed[playerid] == 43 || pPressed[playerid] == 46 || pPressed[playerid] == 53 || pPressed[playerid] == 56 || pPressed[playerid] == 74) e_type = 1;
				    else e_type = 0;
					SetPlayerRaceCheckpoint(playerid,e_type,Vokzal_Arzamas[i][0],Vokzal_Arzamas[i][1],Vokzal_Arzamas[i][2],Vokzal_Arzamas[i+1][0],Vokzal_Arzamas[i+1][1],Vokzal_Arzamas[i+1][2],5.0);
				}
			}
			case 3:
			{
				if(pPressed[playerid] == 0 || pPressed[playerid] == 3 || pPressed[playerid] == 7 || pPressed[playerid] == 10 || pPressed[playerid] == 25 || pPressed[playerid] == 32 || pPressed[playerid] == 35 || pPressed[playerid] == 45 || pPressed[playerid] == 56 || pPressed[playerid] == 64 || pPressed[playerid] == 70 || pPressed[playerid] == 73 || pPressed[playerid] == 79 || pPressed[playerid] == 84)
				{
					if(GetPVarInt(playerid, "BusStop") == 0)
					{
					    new string[128];
						SetPVarInt(playerid, "TimeBus", 11);
						format(string, sizeof(string), "Автобус по маршруту %s отправляется через 10 секунд",name);
						AutoStationBusInfo(playerid, string);
						GameTextForPlayer(playerid, "~r~stop", 1000, 1);
						PlayerPlaySound(playerid, 1058, 0.0, 0.0, 0.0);
					}
					else
					{
						if(pPressed[playerid] == 84) pPressed[playerid] = 0, SCM(playerid,COLOR_LIGHTGREEN,"Вы закончили свой маршрут. Если Вы не хотите продолжать его, введите /end");
					    else pPressed[playerid]++;
					    new i = pPressed[playerid];
					    if(pPressed[playerid] == 0 || pPressed[playerid] == 3 || pPressed[playerid] == 7 || pPressed[playerid] == 10 || pPressed[playerid] == 25 || pPressed[playerid] == 32 || pPressed[playerid] == 35 || pPressed[playerid] == 45 || pPressed[playerid] == 56 || pPressed[playerid] == 64 || pPressed[playerid] == 70 || pPressed[playerid] == 73 || pPressed[playerid] == 79 || pPressed[playerid] == 84) e_type = 1;
				        else e_type = 0;
						SetPlayerRaceCheckpoint(playerid,e_type,Vokzal_Gunsklad[i][0],Vokzal_Gunsklad[i][1],Vokzal_Gunsklad[i][2],Vokzal_Gunsklad[i+1][0],Vokzal_Gunsklad[i+1][1],Vokzal_Gunsklad[i+1][2],5.0);
						SetPVarInt(playerid, "BusStop", 0);
					}
				}
				else
				{
				    pPressed[playerid]++;
					SetPVarInt(playerid, "BusMoney", GetPVarInt(playerid, "BusMoney") + 80);
					new i = pPressed[playerid];
					if(pPressed[playerid] == 0 || pPressed[playerid] == 3 || pPressed[playerid] == 7 || pPressed[playerid] == 10 || pPressed[playerid] == 25 || pPressed[playerid] == 32 || pPressed[playerid] == 35 || pPressed[playerid] == 45 || pPressed[playerid] == 56 || pPressed[playerid] == 64 || pPressed[playerid] == 70 || pPressed[playerid] == 73 || pPressed[playerid] == 79 || pPressed[playerid] == 84) e_type = 1;
				    else e_type = 0;
					SetPlayerRaceCheckpoint(playerid,e_type,Vokzal_Gunsklad[i][0],Vokzal_Gunsklad[i][1],Vokzal_Gunsklad[i][2],Vokzal_Gunsklad[i+1][0],Vokzal_Gunsklad[i+1][1],Vokzal_Gunsklad[i+1][2],5.0);
				}
			}
			case 4:
			{
				if(pPressed[playerid] == 0 || pPressed[playerid] == 2 || pPressed[playerid] == 5 || pPressed[playerid] == 7 || pPressed[playerid] == 16 || pPressed[playerid] == 21 || pPressed[playerid] == 24 || pPressed[playerid] == 31 || pPressed[playerid] == 37 || pPressed[playerid] == 54)
				{
					if(GetPVarInt(playerid, "BusStop") == 0)
					{
					    new string[128];
						SetPVarInt(playerid, "TimeBus", 11);
						format(string, sizeof(string), "Автобус по маршруту %s отправляется через 10 секунд",name);
						AutoStationBusInfo(playerid, string);
						GameTextForPlayer(playerid, "~r~stop", 1000, 1);
						PlayerPlaySound(playerid, 1058, 0.0, 0.0, 0.0);
					}
					else
					{
						if(pPressed[playerid] == 54) pPressed[playerid] = 0, SCM(playerid,COLOR_LIGHTGREEN,"Вы закончили свой маршрут. Если Вы не хотите продолжать его, введите /end");
					    else pPressed[playerid]++;
					    new i = pPressed[playerid];
					    if(pPressed[playerid] == 0 || pPressed[playerid] == 2 || pPressed[playerid] == 5 || pPressed[playerid] == 7 || pPressed[playerid] == 16 || pPressed[playerid] == 21 || pPressed[playerid] == 24 || pPressed[playerid] == 31 || pPressed[playerid] == 37 || pPressed[playerid] == 54) e_type = 1;
				        else e_type = 0;
						SetPlayerRaceCheckpoint(playerid,e_type,Vokzal_Waxta[i][0],Vokzal_Waxta[i][1],Vokzal_Waxta[i][2],Vokzal_Waxta[i+1][0],Vokzal_Waxta[i+1][1],Vokzal_Waxta[i+1][2],5.0);
						SetPVarInt(playerid, "BusStop", 0);
					}
				}
				else
				{
				    pPressed[playerid]++;
					SetPVarInt(playerid, "BusMoney", GetPVarInt(playerid, "BusMoney") + 80);
					new i = pPressed[playerid];
					if(pPressed[playerid] == 0 || pPressed[playerid] == 2 || pPressed[playerid] == 5 || pPressed[playerid] == 7 || pPressed[playerid] == 16 || pPressed[playerid] == 21 || pPressed[playerid] == 24 || pPressed[playerid] == 31 || pPressed[playerid] == 37 || pPressed[playerid] == 55) e_type = 1;
				    else e_type = 0;
					SetPlayerRaceCheckpoint(playerid,e_type,Vokzal_Waxta[i][0],Vokzal_Waxta[i][1],Vokzal_Waxta[i][2],Vokzal_Waxta[i+1][0],Vokzal_Waxta[i+1][1],Vokzal_Waxta[i+1][2],5.0);
				}
			}
			case 5:
			{
				if(pPressed[playerid] == 0 || pPressed[playerid] == 6 || pPressed[playerid] == 19 || pPressed[playerid] == 22 || pPressed[playerid] == 36)
				{
					if(GetPVarInt(playerid, "BusStop") == 0)
					{
					    new string[128];
						SetPVarInt(playerid, "TimeBus", 11);
						format(string, sizeof(string), "Автобус по маршруту %s отправляется через 10 секунд",name);
						AutoStationBusInfo(playerid, string);
						GameTextForPlayer(playerid, "~r~stop", 1000, 1);
						PlayerPlaySound(playerid, 1058, 0.0, 0.0, 0.0);
					}
					else
					{
						if(pPressed[playerid] == 36) pPressed[playerid] = 0, SCM(playerid,COLOR_LIGHTGREEN,"Вы закончили свой маршрут. Если Вы не хотите продолжать его, введите /end");
					    else pPressed[playerid]++;
					    new i = pPressed[playerid];
					    if(pPressed[playerid] == 0 || pPressed[playerid] == 6 || pPressed[playerid] == 19 || pPressed[playerid] == 22 || pPressed[playerid] == 36) e_type = 1;
				        else e_type = 0;
						SetPlayerRaceCheckpoint(playerid,e_type,Vokzal_Lesopilka[i][0],Vokzal_Lesopilka[i][1],Vokzal_Lesopilka[i][2],Vokzal_Lesopilka[i+1][0],Vokzal_Lesopilka[i+1][1],Vokzal_Lesopilka[i+1][2],5.0);
						SetPVarInt(playerid, "BusStop", 0);
					}
				}
				else
				{
				    pPressed[playerid]++;
					SetPVarInt(playerid, "BusMoney", GetPVarInt(playerid, "BusMoney") + 100);
					new i = pPressed[playerid];
					if(pPressed[playerid] == 0 || pPressed[playerid] == 6 || pPressed[playerid] == 19 || pPressed[playerid] == 22 || pPressed[playerid] == 36) e_type = 1;
				    else e_type = 0;
					SetPlayerRaceCheckpoint(playerid,e_type,Vokzal_Lesopilka[i][0],Vokzal_Lesopilka[i][1],Vokzal_Lesopilka[i][2],Vokzal_Lesopilka[i+1][0],Vokzal_Lesopilka[i+1][1],Vokzal_Lesopilka[i+1][2],5.0);
				}
			}
		}
	}
	if(GetPVarInt(playerid, "DrivingTest") > 0)
	{
		if(GetPlayerState(playerid) != 2) return SCM(playerid, COLOR_GREY, "Вы должны находиться за рулем!");
		if(pPressed[playerid] == 54)
		{
			if(GetPVarInt(playerid, "DrivingTestError") > 2)
			{
				SCM(playerid, COLOR_RED, "Вы провалили экзамен на управление наземным транспортом");
				ShowPlayerDialog(playerid, D_NULL, 0, " ", "\n\n{F04245}К сожалению вы не сдали экзамен на управление наземным транспортом\n\n", "Закрыть", "");
			}
			else
			{
				SCM(playerid, COLOR_GREEN, "Поздравляем! Вы сдали экзамен на управление наземным транспортом");
				ShowPlayerDialog(playerid, D_NULL, 0, " ", "\n\n{ffffff}Поздравляем, вы сдали экзамен на управление наземным транспортом\n\n", "Закрыть", "");
				PI[playerid][pLic][0] = 1;
			}
			DeletePVar(playerid, "DrivingTestCARID");
			DeletePVar(playerid, "DrivingTest");
			DeletePVar(playerid, "DrivingTestHealth");
			DeletePVar(playerid, "DrivingTestError");
			SetVehicleToRespawn(GetPlayerVehicleID(playerid));
			DisablePlayerRaceCheckpoint(playerid);
		}
		else
		{
			pPressed[playerid]++;
			new Float:health, i = pPressed[playerid];
			GetVehicleHealth(GetPlayerVehicleID(playerid), health);
			if(health < GetPVarFloat(playerid, "DrivingTestHealth"))
			{
				SendMes(playerid, COLOR_RED, "Вы повредили транспорт. Ошибок: {ffffff}%i", GetPVarInt(playerid, "DrivingTestError") + 1);
				SetPVarInt(playerid, "DrivingTestError", GetPVarInt(playerid, "DrivingTestError") + 1);
			}
			if(SpeedVehicle(playerid) / 2 > 60)
			{
				SendMes(playerid, COLOR_RED, "Вы привысели скорость. Ошибок: {ffffff}%i", GetPVarInt(playerid, "DrivingTestError") + 1);
				SetPVarInt(playerid, "DrivingTestError", GetPVarInt(playerid, "DrivingTestError") + 1);
			}
			if(pPressed[playerid] <= 53) SetPlayerRaceCheckpoint(playerid, 0, DrivingTest[i][0],DrivingTest[i][1],DrivingTest[i][2],DrivingTest[i+1][0],DrivingTest[i+1][1],DrivingTest[i+1][2], 5.0);
			else SetPlayerRaceCheckpoint(playerid,1, DrivingTest[i][0],DrivingTest[i][1],DrivingTest[i][2],0.0,0.0,0.0, 5.0);
			SetPVarFloat(playerid, "DrivingTestHealth", health);
		}
	}
	if(GetPVarInt(playerid, "FlyTest") > 0)
	{
		if(GetPlayerState(playerid) != 2) return SCM(playerid, COLOR_GREY, "Вы должны находиться за рулем!");
		if(pPressed[playerid] == 7)
		{
			if(GetPVarInt(playerid, "FlyTestError") > 2)
			{
				SCM(playerid, COLOR_RED, "Вы провалили экзамен на управление воздушным транспортом");
				ShowPlayerDialog(playerid, D_NULL, 0, " ", "\n\n{F04245}К сожалению вы не сдали экзамен на управление воздушным транспортом\n\n", "Закрыть", "");
			}
			else
			{
				SCM(playerid, COLOR_GREEN, "Поздравляем! Вы сдали экзамен на управление воздушным транспортом");
				ShowPlayerDialog(playerid, D_NULL, 0, " ", "\n\n{ffffff}Поздравляем, вы сдали экзамен на управление воздушным транспортом\n\n", "Закрыть", "");
				PI[playerid][pLic][2] = 1;
			}
			DeletePVar(playerid, "FlyTestCARID");
			DeletePVar(playerid, "FlyTest");
			DeletePVar(playerid, "FlyTestHealth");
			DeletePVar(playerid, "FlyTestError");
			SetVehicleToRespawn(GetPlayerVehicleID(playerid));
			DisablePlayerRaceCheckpoint(playerid);
		}
		else
		{
			pPressed[playerid]++;
			new Float:health, i = pPressed[playerid];
			GetVehicleHealth(GetPlayerVehicleID(playerid), health);
			if(health < GetPVarFloat(playerid, "FlyTestHealth"))
			{
				SendMes(playerid, COLOR_RED, "Вы повредили вертолёт. Ошибок: {ffffff}%i", GetPVarInt(playerid, "FlyTestError") + 1);
				SetPVarInt(playerid, "FlyTestError", GetPVarInt(playerid, "FlyTestError") + 1);
			}
			if(pPressed[playerid] <= 6) SetPlayerRaceCheckpoint(playerid, 3, FlyTest[i][0],FlyTest[i][1],FlyTest[i][2],FlyTest[i+1][0],FlyTest[i+1][1],FlyTest[i+1][2], 5.0);
			else SetPlayerRaceCheckpoint(playerid, 4, FlyTest[i][0],FlyTest[i][1],FlyTest[i][2],0.0,0.0,0.0, 5.0);
			SetPVarFloat(playerid, "FlyTestHealth", health);
		}
	}
	if(GetPVarInt(playerid, "WaterTest"))
	{
		if(GetPlayerState(playerid) != 2) return SCM(playerid, COLOR_GREY, "Вы должны находиться за рулем!");
		if(pPressed[playerid] == 17)
		{
			if(GetPVarInt(playerid, "WaterTestError") > 2)
			{
				SCM(playerid, COLOR_RED, "Вы провалили экзамен на управление водным транспортом");
				ShowPlayerDialog(playerid, D_NULL, 0, " ", "\n\n{F04245}К сожалению вы не сдали экзамен на управление водным транспортом\n\n", "Закрыть", "");
			}
			else
			{
				SCM(playerid, COLOR_GREEN, "Поздравляем! Вы сдали экзамен на управление водным транспортом");
				ShowPlayerDialog(playerid, D_NULL, 0, " ", "\n\n{ffffff}Поздравляем, вы сдали экзамен на управление водным транспортом\n\n", "Закрыть", "");
				PI[playerid][pLic][1] = 1;
			}
			DeletePVar(playerid, "WaterTestCARID");
			DeletePVar(playerid, "WaterTest");
			DeletePVar(playerid, "WaterTestTimeOn");
			DeletePVar(playerid, "WaterTestHealth");
			DeletePVar(playerid, "WaterTestError");
			SetVehicleToRespawn(GetPlayerVehicleID(playerid));
			DisablePlayerRaceCheckpoint(playerid);
			SetPlayerPosEx(playerid,2447.4939,-1075.1093,1.5600);
			SetPlayerFacingAngle(playerid,31.0);
		}
		else
		{
			pPressed[playerid]++;
			new Float:health, i = pPressed[playerid];
			GetVehicleHealth(GetPlayerVehicleID(playerid), health);
			if(health < GetPVarFloat(playerid, "WaterTestHealth"))
			{
				SendMes(playerid, COLOR_RED, "Вы повредили лодку. Ошибок: {ffffff}%i", GetPVarInt(playerid, "WaterTestError") + 1);
				SetPVarInt(playerid, "WaterTestError", GetPVarInt(playerid, "WaterTestError") + 1);
			}
			if(pPressed[playerid] <= 16) SetPlayerRaceCheckpoint(playerid, 0, WaterTest[i][0],WaterTest[i][1],WaterTest[i][2],WaterTest[i+1][0],WaterTest[i+1][1],WaterTest[i+1][2], 5.0);
			else SetPlayerRaceCheckpoint(playerid, 1, WaterTest[i][0],WaterTest[i][1],WaterTest[i][2],0.0,0.0,0.0, 5.0);
			SetPVarFloat(playerid, "WaterTestHealth", health);
		}
	}
	switch(RaceCP[playerid])
	{
		case 10:
		{
			RaceCP[playerid] = 11;
			DisablePlayerRaceCheckpoint(playerid);
			GonkaSchet[playerid] ++;
			GameTextForPlayer(playerid, "~w~~n~~n~Point: ~b~1 / 31", 2000, 4);
			SetPlayerRaceCheckpoint(playerid,0, GonkaCPOINT[1][0], GonkaCPOINT[1][1], GonkaCPOINT[1][2], GonkaCPOINT[2][0], GonkaCPOINT[2][1],GonkaCPOINT[2][2], 6.0);
		}
		case 11:
		{
			RaceCP[playerid] = 12;
			DisablePlayerRaceCheckpoint(playerid);
			GonkaSchet[playerid] ++;
			GameTextForPlayer(playerid, "~w~~n~~n~Point: ~b~2 / 31", 2000, 4);
			SetPlayerRaceCheckpoint(playerid, 0, GonkaCPOINT[2][0], GonkaCPOINT[2][1], GonkaCPOINT[2][2], GonkaCPOINT[3][0], GonkaCPOINT[3][1], GonkaCPOINT[3][2], 6.0);
		}
		case 12:
		{
			RaceCP[playerid] = 13;
			DisablePlayerRaceCheckpoint(playerid);
			GonkaSchet[playerid] ++;
			GameTextForPlayer(playerid, "~w~~n~~n~Point: ~b~3 / 31", 2000, 4);
			SetPlayerRaceCheckpoint(playerid, 0, GonkaCPOINT[3][0], GonkaCPOINT[3][1], GonkaCPOINT[3][2], GonkaCPOINT[4][0], GonkaCPOINT[4][1], GonkaCPOINT[4][2], 6.0);
		}
		case 13:
		{
			RaceCP[playerid] = 14;
			DisablePlayerRaceCheckpoint(playerid);
			GonkaSchet[playerid] ++;
			GameTextForPlayer(playerid, "~w~~n~~n~Point: ~b~4 / 31", 2000, 4);
			SetPlayerRaceCheckpoint(playerid, 0, GonkaCPOINT[4][0], GonkaCPOINT[4][1], GonkaCPOINT[4][2], GonkaCPOINT[5][0], GonkaCPOINT[5][1], GonkaCPOINT[5][2], 6.0);
		}
		case 14:
		{
			RaceCP[playerid] = 15;
			DisablePlayerRaceCheckpoint(playerid);
			GonkaSchet[playerid] ++;
			GameTextForPlayer(playerid, "~w~~n~~n~Point: ~b~5 / 31", 2000, 4);
			SetPlayerRaceCheckpoint(playerid,0, GonkaCPOINT[5][0], GonkaCPOINT[5][1], GonkaCPOINT[5][2], GonkaCPOINT[6][0], GonkaCPOINT[6][1],GonkaCPOINT[6][2], 6.0);
		}
		case 15:
		{
			RaceCP[playerid] = 16;
			DisablePlayerRaceCheckpoint(playerid);
			GonkaSchet[playerid] ++;
			GameTextForPlayer(playerid, "~w~~n~~n~Point: ~b~6 / 31", 2000, 4);
			SetPlayerRaceCheckpoint(playerid, 0, GonkaCPOINT[6][0], GonkaCPOINT[6][1], GonkaCPOINT[6][2], GonkaCPOINT[7][0], GonkaCPOINT[7][1], GonkaCPOINT[7][2], 6.0);
		}
		case 16:
		{
			RaceCP[playerid] = 17;
			DisablePlayerRaceCheckpoint(playerid);
			GonkaSchet[playerid] ++;
			GameTextForPlayer(playerid, "~w~~n~~n~Point: ~b~7 / 31", 2000, 4);
			SetPlayerRaceCheckpoint(playerid, 0, GonkaCPOINT[7][0], GonkaCPOINT[7][1], GonkaCPOINT[7][2], GonkaCPOINT[8][0], GonkaCPOINT[8][1], GonkaCPOINT[8][2], 6.0);
		}
		case 17:
		{
			RaceCP[playerid] = 18;
			DisablePlayerRaceCheckpoint(playerid);
			GonkaSchet[playerid] ++;
			GameTextForPlayer(playerid, "~w~~n~~n~Point: ~b~8 / 31", 2000, 4);
			SetPlayerRaceCheckpoint(playerid, 0, GonkaCPOINT[8][0], GonkaCPOINT[8][1], GonkaCPOINT[8][2], GonkaCPOINT[9][0], GonkaCPOINT[9][1], GonkaCPOINT[9][2], 6.0);
		}
		case 18:
		{
			RaceCP[playerid] = 19;
			DisablePlayerRaceCheckpoint(playerid);
			GonkaSchet[playerid] ++;
			GameTextForPlayer(playerid, "~w~~n~~n~Point: ~b~9 / 31", 2000, 4);
			SetPlayerRaceCheckpoint(playerid,0, GonkaCPOINT[9][0], GonkaCPOINT[9][1], GonkaCPOINT[9][2], GonkaCPOINT[10][0], GonkaCPOINT[10][1],GonkaCPOINT[10][2], 6.0);
		}
		case 19:
		{
			RaceCP[playerid] = 20;
			DisablePlayerRaceCheckpoint(playerid);
			GonkaSchet[playerid] ++;
			GameTextForPlayer(playerid, "~w~~n~~n~Point: ~b~10 / 31", 2000, 4);
			SetPlayerRaceCheckpoint(playerid, 0, GonkaCPOINT[10][0], GonkaCPOINT[10][1], GonkaCPOINT[10][2], GonkaCPOINT[11][0], GonkaCPOINT[11][1], GonkaCPOINT[11][2], 6.0);
		}
		case 20:
		{
			RaceCP[playerid] = 21;
			DisablePlayerRaceCheckpoint(playerid);
			GonkaSchet[playerid] ++;
			GameTextForPlayer(playerid, "~w~~n~~n~Point: ~b~11 / 31", 2000, 4);
			SetPlayerRaceCheckpoint(playerid, 0, GonkaCPOINT[11][0], GonkaCPOINT[11][1], GonkaCPOINT[11][2], GonkaCPOINT[12][0], GonkaCPOINT[12][1], GonkaCPOINT[12][2], 6.0);
		}
		case 21:
		{
			RaceCP[playerid] = 22;
			DisablePlayerRaceCheckpoint(playerid);
			GonkaSchet[playerid] ++;
			GameTextForPlayer(playerid, "~w~~n~~n~Point: ~b~12 / 31", 2000, 4);
			SetPlayerRaceCheckpoint(playerid, 0, GonkaCPOINT[12][0], GonkaCPOINT[12][1], GonkaCPOINT[12][2], GonkaCPOINT[13][0], GonkaCPOINT[13][1], GonkaCPOINT[13][2], 6.0);
		}
		case 22:
		{
			RaceCP[playerid] = 23;
			DisablePlayerRaceCheckpoint(playerid);
			GonkaSchet[playerid] ++;
			GameTextForPlayer(playerid, "~w~~n~~n~Point: ~b~13 / 31", 2000, 4);
			SetPlayerRaceCheckpoint(playerid,0, GonkaCPOINT[13][0], GonkaCPOINT[13][1], GonkaCPOINT[13][2], GonkaCPOINT[14][0], GonkaCPOINT[14][1],GonkaCPOINT[14][2], 6.0);
		}
		case 23:
		{
			RaceCP[playerid] = 24;
			DisablePlayerRaceCheckpoint(playerid);
			GonkaSchet[playerid] ++;
			GameTextForPlayer(playerid, "~w~~n~~n~Point: ~b~14 / 31", 2000, 4);
			SetPlayerRaceCheckpoint(playerid, 0, GonkaCPOINT[14][0], GonkaCPOINT[14][1], GonkaCPOINT[14][2], GonkaCPOINT[15][0], GonkaCPOINT[15][1], GonkaCPOINT[15][2], 6.0);
		}
		case 24:
		{
			RaceCP[playerid] = 25;
			DisablePlayerRaceCheckpoint(playerid);
			GonkaSchet[playerid] ++;
			GameTextForPlayer(playerid, "~w~~n~~n~Point: ~b~15 / 31", 2000, 4);
			SetPlayerRaceCheckpoint(playerid, 0, GonkaCPOINT[15][0], GonkaCPOINT[15][1], GonkaCPOINT[15][2], GonkaCPOINT[16][0], GonkaCPOINT[16][1], GonkaCPOINT[16][2], 6.0);
		}
		case 25:
		{
			RaceCP[playerid] = 26;
			DisablePlayerRaceCheckpoint(playerid);
			GonkaSchet[playerid] ++;
			GameTextForPlayer(playerid, "~w~~n~~n~Point: ~b~16 / 31", 2000, 4);
			SetPlayerRaceCheckpoint(playerid, 0, GonkaCPOINT[16][0], GonkaCPOINT[16][1], GonkaCPOINT[16][2], GonkaCPOINT[17][0], GonkaCPOINT[17][1], GonkaCPOINT[17][2], 6.0);
		}
		case 26:
		{
			RaceCP[playerid] = 27;
			DisablePlayerRaceCheckpoint(playerid);
			GonkaSchet[playerid] ++;
			GameTextForPlayer(playerid, "~w~~n~~n~Point: ~b~17 / 31", 2000, 4);
			SetPlayerRaceCheckpoint(playerid,0, GonkaCPOINT[17][0], GonkaCPOINT[17][1], GonkaCPOINT[17][2], GonkaCPOINT[18][0], GonkaCPOINT[18][1],GonkaCPOINT[18][2], 6.0);
		}
		case 27:
		{
			RaceCP[playerid] = 28;
			DisablePlayerRaceCheckpoint(playerid);
			GonkaSchet[playerid] ++;
			GameTextForPlayer(playerid, "~w~~n~~n~Point: ~b~18 / 31", 2000, 4);
			SetPlayerRaceCheckpoint(playerid, 0, GonkaCPOINT[18][0], GonkaCPOINT[18][1], GonkaCPOINT[18][2], GonkaCPOINT[19][0], GonkaCPOINT[19][1], GonkaCPOINT[19][2], 6.0);
		}
		case 28:
		{
			RaceCP[playerid] = 29;
			DisablePlayerRaceCheckpoint(playerid);
			GonkaSchet[playerid] ++;
			GameTextForPlayer(playerid, "~w~~n~~n~Point: ~b~19 / 31", 2000, 4);
			SetPlayerRaceCheckpoint(playerid, 0, GonkaCPOINT[19][0], GonkaCPOINT[19][1], GonkaCPOINT[19][2], GonkaCPOINT[20][0], GonkaCPOINT[20][1], GonkaCPOINT[20][2], 6.0);
		}
		case 29:
		{
			RaceCP[playerid] = 30;
			DisablePlayerRaceCheckpoint(playerid);
			GonkaSchet[playerid] ++;
			GameTextForPlayer(playerid, "~w~~n~~n~Point: ~b~20 / 31", 2000, 4);
			SetPlayerRaceCheckpoint(playerid, 0, GonkaCPOINT[20][0], GonkaCPOINT[20][1], GonkaCPOINT[20][2], GonkaCPOINT[21][0], GonkaCPOINT[21][1], GonkaCPOINT[21][2], 6.0);
		}
		case 30:
		{
			RaceCP[playerid] = 31;
			DisablePlayerRaceCheckpoint(playerid);
			GonkaSchet[playerid] ++;
			GameTextForPlayer(playerid, "~w~~n~~n~Point: ~b~21 / 31", 2000, 4);
			SetPlayerRaceCheckpoint(playerid,0, GonkaCPOINT[21][0], GonkaCPOINT[21][1], GonkaCPOINT[21][2], GonkaCPOINT[22][0], GonkaCPOINT[22][1],GonkaCPOINT[22][2], 6.0);
		}
		case 31:
		{
			RaceCP[playerid] = 32;
			DisablePlayerRaceCheckpoint(playerid);
			GonkaSchet[playerid] ++;
			GameTextForPlayer(playerid, "~w~~n~~n~Point: ~b~22 / 31", 2000, 4);
			SetPlayerRaceCheckpoint(playerid, 0, GonkaCPOINT[22][0], GonkaCPOINT[22][1], GonkaCPOINT[22][2], GonkaCPOINT[23][0], GonkaCPOINT[23][1], GonkaCPOINT[23][2], 6.0);
		}
		case 32:
		{
			RaceCP[playerid] = 33;
			DisablePlayerRaceCheckpoint(playerid);
			GonkaSchet[playerid] ++;
			GameTextForPlayer(playerid, "~w~~n~~n~Point: ~b~23 / 31", 2000, 4);
			SetPlayerRaceCheckpoint(playerid, 0, GonkaCPOINT[23][0], GonkaCPOINT[23][1], GonkaCPOINT[23][2], GonkaCPOINT[24][0], GonkaCPOINT[24][1], GonkaCPOINT[24][2], 6.0);
		}
		case 33:
		{
			RaceCP[playerid] = 34;
			DisablePlayerRaceCheckpoint(playerid);
			GonkaSchet[playerid] ++;
			GameTextForPlayer(playerid, "~w~~n~~n~Point: ~b~24 / 31", 2000, 4);
			SetPlayerRaceCheckpoint(playerid, 0, GonkaCPOINT[24][0], GonkaCPOINT[24][1], GonkaCPOINT[24][2], GonkaCPOINT[25][0], GonkaCPOINT[25][1], GonkaCPOINT[25][2], 6.0);
		}
		case 34:
		{
			RaceCP[playerid] = 35;
			DisablePlayerRaceCheckpoint(playerid);
			GonkaSchet[playerid] ++;
			GameTextForPlayer(playerid, "~w~~n~~n~Point: ~b~25 / 31", 2000, 4);
			SetPlayerRaceCheckpoint(playerid,0, GonkaCPOINT[25][0], GonkaCPOINT[25][1], GonkaCPOINT[25][2], GonkaCPOINT[26][0], GonkaCPOINT[26][1], GonkaCPOINT[26][2], 6.0);
		}
		case 35:
		{
			RaceCP[playerid] = 36;
			DisablePlayerRaceCheckpoint(playerid);
			GonkaSchet[playerid] ++;
			GameTextForPlayer(playerid, "~w~~n~~n~Point: ~b~26 / 31", 2000, 4);
			SetPlayerRaceCheckpoint(playerid, 0, GonkaCPOINT[26][0], GonkaCPOINT[26][1], GonkaCPOINT[26][2], GonkaCPOINT[27][0], GonkaCPOINT[27][1], GonkaCPOINT[27][2], 6.0);
		}
		case 36:
		{
			RaceCP[playerid] = 37;
			DisablePlayerRaceCheckpoint(playerid);
			GonkaSchet[playerid] ++;
			GameTextForPlayer(playerid, "~w~~n~~n~Point: ~b~27 / 31", 2000, 4);
			SetPlayerRaceCheckpoint(playerid, 0, GonkaCPOINT[27][0], GonkaCPOINT[27][1], GonkaCPOINT[27][2], GonkaCPOINT[28][0], GonkaCPOINT[28][1], GonkaCPOINT[28][2], 6.0);
		}
		case 37:
		{
			RaceCP[playerid] = 38;
			DisablePlayerRaceCheckpoint(playerid);
			GonkaSchet[playerid] ++;
			GameTextForPlayer(playerid, "~w~~n~~n~Point: ~b~28 / 31", 2000, 4);
			SetPlayerRaceCheckpoint(playerid, 0, GonkaCPOINT[28][0], GonkaCPOINT[28][1], GonkaCPOINT[28][2], GonkaCPOINT[29][0], GonkaCPOINT[29][1], GonkaCPOINT[29][2], 6.0);
		}
		case 38:
		{
			RaceCP[playerid] = 39;
			DisablePlayerRaceCheckpoint(playerid);
			GonkaSchet[playerid] ++;
			GameTextForPlayer(playerid, "~w~~n~~n~Point: ~b~29 / 31", 2000, 4);
			SetPlayerRaceCheckpoint(playerid,0, GonkaCPOINT[29][0], GonkaCPOINT[29][1], GonkaCPOINT[29][2], GonkaCPOINT[30][0], GonkaCPOINT[30][1], GonkaCPOINT[30][2], 6.0);
		}
		case 39:
		{
			RaceCP[playerid] = 40;
			DisablePlayerRaceCheckpoint(playerid);
			GonkaSchet[playerid] ++;
			GameTextForPlayer(playerid, "~w~~n~~n~Point: ~b~30 / 31", 2000, 4);
			SetPlayerRaceCheckpoint(playerid, 0, GonkaCPOINT[30][0], GonkaCPOINT[30][1], GonkaCPOINT[30][2], GonkaCPOINT[31][0], GonkaCPOINT[31][1], GonkaCPOINT[31][2], 6.0);
		}
		case 40:
		{
			DisablePlayerRaceCheckpoint(playerid);
			GameTextForPlayer(playerid, "~w~~n~~n~Point: ~b~31 / 31~n~~g~YOU FINISHED", 5000, 4);
			winners ++;
			new string[100];
			if(winners <= 5)
			{
				format(string, sizeof(string), "{63BD4E}№%i. %s\n", winners, GetName(playerid));
				strcat(RaceText, string);
			}
			else
			{
				format(string, sizeof(string), "{FFFFFF}№%i. %s\n", winners, GetName(playerid));
				strcat(RaceText, string);
			}
			RaceCP[playerid] = 0;
			DestroyVehicle(GetPlayerVehicleID(playerid));
			DisablePlayerRaceCheckpoint(playerid);
			SetPlayerInterior(playerid, 0);
			SetPlayerVirtualWorld(playerid, 0);
			SetPlayerPosEx(playerid, -1496.8129,1621.5154,36.3659);
			SetPlayerFacingAngle(playerid, 180.1685);
			GonkaSchet[playerid] = GonkaStavka[playerid] = 0;
			PlayerPlaySound(playerid, 31202, 0.0, 0.0, 0.0);
			if(Gonshiki[0] == 999)
			{
				Gonshiki[0] = playerid;
				new win_summa = (GonkaPriz/100)*80;
				SendMes(playerid, COLOR_GREEN, "Вы приехали первым и получили %i руб", win_summa);
				TransferMoney(-1, playerid, win_summa);
				DeletePVar(playerid, "PlayerGonka");
				PlayerPlaySound(playerid, 31205, 0.0, 0.0, 0.0);
			}
			else if(Gonshiki[1] == 999)
			{
				Gonshiki[1] = playerid;
				new win_summa = (GonkaPriz/100)*60;
				SendMes(playerid, COLOR_GREEN, "Вы приехали вторым и получили %i руб", win_summa);
				TransferMoney(-1, playerid, win_summa);
				DeletePVar(playerid, "PlayerGonka");
				PlayerPlaySound(playerid, 31205, 0.0, 0.0, 0.0);
			}
			else if(Gonshiki[2] == 999)
			{
				Gonshiki[2] = playerid;
				new win_summa = (GonkaPriz/100)*40;
				SendMes(playerid, COLOR_GREEN, "Вы приехали третьим и получили %i руб", win_summa);
				TransferMoney(-1, playerid, win_summa);
				DeletePVar(playerid, "PlayerGonka");
				PlayerPlaySound(playerid, 31205, 0.0, 0.0, 0.0);
			}
			else if(Gonshiki[3] == 999)
			{
				Gonshiki[3] = playerid;
				new win_summa = (GonkaPriz/100)*10;
				SendMes(playerid, COLOR_GREEN, "Вы приехали четвёртым и получили %i руб", win_summa);
				TransferMoney(-1, playerid, win_summa);
				DeletePVar(playerid, "PlayerGonka");
				PlayerPlaySound(playerid, 31205, 0.0, 0.0, 0.0);
			}
			else if(Gonshiki[4] == 999)
			{
				Gonshiki[4] = playerid;
				new win_summa = (GonkaPriz/100)*5;
				SendMes(playerid, COLOR_GREEN, "Вы приехали пятым и получили %i руб", win_summa);
				TransferMoney(-1, playerid, win_summa);
				DeletePVar(playerid, "PlayerGonka");
				PlayerPlaySound(playerid, 31205, 0.0, 0.0, 0.0);
			}
			DeletePVar(playerid, "PlayerGonka");
			return 1;
		}
	}
	return 1;
}

 

 

Поделиться сообщением


Ссылка на сообщение
  • 0

@Daniil Roslyakov шапку своего паблика поменяйте: 

Спойлер

public OnPlayerEnterRaceCheckpoint(playerid)
{
	if(UseGPS[playerid])
	{
		SCM(playerid, COLOR_YELLOW, "Âû äîñòèãëè ìåñòà íàçíà÷åíèÿ");
		DisablePlayerRaceCheckpoint(playerid);
		UseGPS[playerid] = false;
		for(new i; i < 4; i++) TextDrawHideForPlayer(playerid, GPSEnabled[i]);
		if(GetPVarInt(playerid, "DrivingTest") > 0) SetPlayerRaceCheckpoint(playerid,1, DrivingTest[0][0],DrivingTest[0][1],DrivingTest[0][2],0.0,0.0,0.0, 5.0);
		if(GetPVarInt(playerid, "FlyTest") > 0) SetPlayerRaceCheckpoint(playerid,3,FlyTest[0][0],FlyTest[0][1],FlyTest[0][2],FlyTest[1][0],FlyTest[1][1],FlyTest[1][2],5.0);
		if(GetPVarInt(playerid, "WaterTest") > 0) SetPlayerRaceCheckpoint(playerid,0,WaterTest[0][0],WaterTest[0][1],WaterTest[0][2],WaterTest[0+1][0],WaterTest[0+1][1],WaterTest[0+1][2],5.0);
		return 1;
	}

 

 

Поделиться сообщением


Ссылка на сообщение
Гость
Эта тема закрыта для публикации ответов.
  • Последние посетители   0 пользователей онлайн

    Ни одного зарегистрированного пользователя не просматривает данную страницу

  • Похожий контент

    • OdinDvaTri
      От OdinDvaTri
      ImperiaL-RPG - тот самый легендарный проект, который снова открыт и уже ждёт своих игроков.
      Многофункциональный сервер, в котором вы не будете нуждаться в отыгровке Role Play режима.
      Мод не банально сплагиачен, а написан с 0 нашими Администраторами.
      На сервере есть свое радио, есть возможность стать rDj сервера.
      Также проходят различные мероприятия и конкурсы от администрации.
      Присоединяйся к нам и окунись в увлекательный мир прямо сейчас! Наш сервер ждет именно тебя. Будь лучшим в нашей игровой вселенной!
      IP: play.imperial-rpg.ru:7777
      Форум: https://forum.imperial-rpg.ru/
      TG: https://t.me/imperialrpg
    • INewBRO
      От INewBRO
      Перепроверял код много раз. В компиляторе 4 ошибки. Код с компилятором прикрепил. Помогите
      case DLG_REGAGE:         {             if(!strlen(inputtext))             {                 SPD(playerid, DLG_REGAGE, DIALOG_STYLE_INPUT, "{0797FF}Регистрация{FFFFFF} • Выберите возраст персонажа",//415 строка                     "{FFFFFF}Выберите возраст вашего персонажа:\n\                     {ff6a00}\t• Возраст должен быть от 18 до 60-и\n\",                 "Готово", "");//418 строка                 return SCM(playerid, COLOR_RED, "-Ошибка- {FFFFFF} Введите ваш возраст в поле ниже");             }  
    • Pomogitemne
      От Pomogitemne
      Здравствуйте, не нашёл подходящий раздел поэтому пишу здесь. Скачал я GTA Criminal Russia закинул туда мультиплеер добавляю свой сервер и хочу к нему подключится... Вот что пишет "ошибка в файлах и показывает этот путь  C:\user\OneDrive\Документы\GTA San Andres User Files\CR-MP 0.3.7\reports\mp.txt" удалял и переустанавливал 4 раза не помогает. Что делать?