RP мод под основу.
Опубликовал
Гость stibs
,
В теме 3 сообщения
Для публикации сообщений создайте учётную запись или авторизуйтесь
Вы должны быть пользователем, чтобы оставить комментарий
Создать учетную запись
Зарегистрируйте новую учётную запись в нашем сообществе. Это очень просто!
Регистрация нового пользователя
-
Последние посетители 0 пользователей онлайн
Ни одного зарегистрированного пользователя не просматривает данную страницу
-
Похожий контент
-
От benz123
Добрейшего дня форумчане. Вообщем вчера писал код для новогодних квестов на основе ActorDialog. Не работает клавиша закрыть, перерыл все форумы и весь интернет. Писал знакомой гадалке, даже она не знает. Надеюсь всемогущие форумчане смогут мне помочь. Очень прошу.
Код :
}
if(newkeys == 1024)
{
if(IsPlayerInRangeOfPoint(playerid,2.0, -12.1547,778.4205,12.0991))
{
{
SendPacket_2(playerid, s_CefInterface, t_CefShow, "ActorDialog","[0,4, \"Текст?\", \"\", \"Персонаж 1\", [[\"Закрыть\",\"Agressive\",\"\"]],[\"\"]]");
EnablePlayerGPS(playerid, 37, -107.3198,785.9228,12.1681, "");
}
}
}
if(newkeys == 1024)
{
if(IsPlayerInRangeOfPoint(playerid,2.0, -107.3198,785.9228,12.1681))
{
{
SendPacket_2(playerid, s_CefInterface, t_CefShow, "ActorDialog","[0,8, \"Ýòî óëûáêà-áîò Åãî óëûáàþùèéñÿ ýêðàí íàñòðîåí íà îáùåíèå ñ ëþäüìè, ñîçäàâàÿ ïîçèòèâíóþ àòìîñôåðó. Îí îñíàùåí ñèñòåìîé ðàñïîçíàâàíèÿ ëèö è ðå÷è, ÷òî ïîçâîëÿåò åìó àäàïòèðîâàòü îòâåòû ïîä íóæäû êàæäîãî ãîñòÿ\", \"\", \"Ïîìîùíèê Þðèé\", [[\"Çàêðûòü\",\"Agressive\",\"\"]],[\"\"]]");
SetPlayerData(playerid, QUESTHelloween, 4);
EnablePlayerGPS(playerid, 37, -253.4961,769.5287,12.1236, "");
}
}
}
if(newkeys == 1024)
{
if(IsPlayerInRangeOfPoint(playerid,2.0, -253.7807,768.8877,12.1219))
{
{
SendPacket_2(playerid, s_CefInterface, t_CefShow, "ActorDialog_2","[0,9, \"Ýòîò êîìïàêòíûé ðîáîò - ýòî ðåâîëþöèîííàÿ óáîð÷íàÿ ìàøèíà áóäóùåãî, ñïîñîáíàÿ ïîääåðæèâàòü ÷èñòîòó íà áîëüøèõ ïëîùàäÿõ áåç ó÷àñòèÿ ÷åëîâåêà. Îí îñíàùåí ñèñòåìîé ðàñïîçíàâàíèÿ ïðåïÿòñâèé, óìíûì ïëàíèðîâàíèåì ìàðøðóòà è ýêîëîãè÷íûìè ÷èñòÿùèìè ñðåäñòâàìè. Èñïîëüçóåò ìèíèìàëüíîå êîëè÷åñòâî âîäû è ýëåêòðîýíåðãèè, ÷òî äåëàåò åãî ýêîëîãè÷åñêè áåçîïàñíûì è ýôôåêòèâíûì ïîìîùíèêîì äëÿ óáîðêè ãîðäñêèõ è îáùåñòâåííûõ ïðîñòðàíñòâ\", \"\", \"Ïîìîùíèê Äåíèñ\", [[\"Çàêðûòü\",\"Agressive\",\"\"]],[\"\"]]");
SetPlayerData(playerid, QUESTHelloween, 5);
EnablePlayerGPS(playerid, 37, -253.4961,769.5287,12.1236, "");
}
}
}
if(newkeys == 1024)
{
if(IsPlayerInRangeOfPoint(playerid,2.0, -256.0965,782.8863,12.1324))
{
{
SetPlayerData(playerid, QUESTHelloween, 6);
SendPacket_2(playerid, s_CefInterface, t_CefShow, "Video", "[\"newyear/train_vol1.webm\", 0.5]");
SetTimer("konesvidoas",115000,false);
EnablePlayerGPS(playerid, 37, -2701.5149,381.4050,10.1074, "");
}
}
}
if(newkeys == 1024) //после этого можно не обращать внимание на последующий код. (не доделал )
{
if(IsPlayerInRangeOfPoint(playerid,2.0, -2701.5149,381.4050,10.1074))
{
if(GetPlayerData(playerid, QUESTHelloween) == 6)
{
SetPlayerData(playerid, QUESTHelloween, 7);
SCM(playerid, -1, "{FFFFFF}Äà èäè íàõóé îò ñþäà çàåáàë ÷åðò");
}
}
}
if(newkeys == 1024)
{
if(IsPlayerInRangeOfPoint(playerid,2.0, -5026.2183,4054.4126,4.7527))
{
if(GetPlayerData(playerid, QUESTHelloween) == 7)
{
SendPacket_2(playerid, s_CefInterface, t_CefShow, "ActorDialog","[0,12, \"Õóé Çíàåò ÷òî òóò ïèñàòü ëåíü äîïèñûâàòü è çàõîäèòü íà ðàäìèð\", \"\", \"èäó íàõóé\", [[\"Ïîøåë ÿ íàõóé\",\"Agressive\",\"\"]],[\"\"]]");
SetPlayerData(playerid, QUESTHelloween, 8);
SetPlayerCheckpoint(playerid, -5008.2627,4067.5132,6.7602, 3.0);
}
}
}
if(newkeys & 1024)
{
if(IsPlayerInRangeOfPoint(playerid,2.0, -5026.2183,4054.4126,4.7527))
{
if(GetPlayerData(playerid, QUESTHelloween) == 13)
{
SetPlayerData(playerid, QUESTHelloween, 14);
SendPacket_2(playerid, s_CefInterface, t_CefShow, "ActorDialog","[0,13, \"Õóé Çíàåò ÷òî òóò ïèñàòü ëåíü äîïèñûâàòü è çàõîäèòü íà ðàäìèð\", \"\", \"èäó íàõóé\", [[\"Ïîøåë ÿ íàõóé\",\"Agressive\",\"\"]],[\"\"]]");
}
}
}
if(newkeys & 1024)
{
if(IsPlayerInRangeOfPoint(playerid,2.0, -5044.3330,4049.4717,3.5460))
{
if(GetPlayerData(playerid, QUESTHelloween) == 14)
{
SetPlayerData(playerid, QUESTHelloween, 15);
}
}
}
if(newkeys & 1024)
{
if(IsPlayerInRangeOfPoint(playerid,2.0, -5044.3330,4049.4717,3.5460))
{
if(GetPlayerData(playerid, QUESTHelloween) == 14)
{
SetPlayerData(playerid, QUESTHelloween, 15);
}
}
}
if(newkeys & 1024) // YOI 1 NIAA
{
if(IsPlayerInRangeOfPoint(playerid,2.0, -5008.2627,4067.5132,6.7602))
{
if(GetPlayerData(playerid, QUESTHelloween) == 8)
{
SetPlayerCheckpoint(playerid, -5002.4692,4066.9282,7.081, 3.0);
SCM(playerid, 0x9FCE6DFF, "Au oniaoii i?enoeee 1 ec 5 noa?oaia.");
SetPlayerData(playerid, QUESTHelloween, 9);
}
}
}
if(newkeys & 1024) // YOI 2 NIAA
{
if(IsPlayerInRangeOfPoint(playerid,2.0, -5002.4692,4066.9282,7.0811))
{
if(GetPlayerData(playerid, QUESTHelloween) == 9)
{
SetPlayerData(playerid, QUESTHelloween, 10);
SetPlayerCheckpoint(playerid, -5003.5225,4075.0249,4.1990, 3.0);
SCM(playerid, 0x9FCE6DFF, "Au oniaoii i?enoeee 2 ec 5 noa?oaia.");
}
}
}
if(newkeys & 1024) // YOI 3 NIAA
{
if(IsPlayerInRangeOfPoint(playerid,2.0, -5003.5225,4075.0249,4.1990))
{
if(GetPlayerData(playerid, QUESTHelloween) == 10)
{
SetPlayerData(playerid, QUESTHelloween, 11);
SetPlayerCheckpoint(playerid, -5004.6738,4078.8770,6.4648, 3.0);
SCM(playerid, 0x9FCE6DFF, "Au oniaoii i?enoeee 3 ec 5 noa?oaia.");
}
}
}
if(newkeys & 1024) // YOI 4 NIAA
{
if(IsPlayerInRangeOfPoint(playerid,2.0, -5004.6738,4078.8770,6.4648))
{
if(GetPlayerData(playerid, QUESTHelloween) == 11)
{
SetPlayerData(playerid, QUESTHelloween, 12);
SetPlayerCheckpoint(playerid, -4984.7524,4082.1750,4.3296, 3.0);
SCM(playerid, 0x9FCE6DFF, "Au oniaoii i?enoeee 4 ec 5 noa?oaia.");
}
}
}
if(newkeys & 1024) // YOI 5 NIAA
{
if(IsPlayerInRangeOfPoint(playerid,2.0, -4984.7524,4082.1750,4.3296))
{
if(GetPlayerData(playerid, QUESTHelloween) == 12)
{
SetPlayerData(playerid, QUESTHelloween, 13);
DisablePlayerCheckpoint(playerid);
SCM(playerid, 0x9FCE6DFF, "Au oniaoii i?enoeee 5 ec 5 noa?oaia.");
}
}
}
if(newkeys & 1024) // YOI 1 NIAA
{
if(IsPlayerInRangeOfPoint(playerid,2.0, 1906.3938,-2670.9546,11.1599))
{
if(GetPlayerData(playerid, QUESTHelloween11) == 1)
{
SetPlayerData(playerid, QUESTHelloween1, 1);
SetPlayerCheckpoint(playerid, 1872.6256,-2659.2671,11.1613, 3.0);
SCM(playerid, 0x9FCE6DFF, "Au oniaoii i?enoeee 1 ec 10 noa?oaia.");
SetPlayerData(playerid, QUESTHelloween11, 2);
}
}
}
if(newkeys & 1024) // YOI 2 NIAA
{
if(IsPlayerInRangeOfPoint(playerid,2.0, 1872.6256,-2659.2671,11.1613))
{
if(GetPlayerData(playerid, QUESTHelloween1) == 1)
{
SetPlayerData(playerid, QUESTHelloween1, 2);
SetPlayerCheckpoint(playerid, 2050.4109,-2655.9016,11.1599, 3.0);
SCM(playerid, 0x9FCE6DFF, "Au oniaoii i?enoeee 2 ec 10 noa?oaia.");
}
}
}
if(newkeys & 1024) // YOI 3 NIAA
{
if(IsPlayerInRangeOfPoint(playerid,2.0, 2050.4109,-2655.9016,11.1599))
{
if(GetPlayerData(playerid, QUESTHelloween1) == 2)
{
SetPlayerData(playerid, QUESTHelloween1, 3);
SetPlayerCheckpoint(playerid, 2015.9215,-2651.8269,11.2707, 3.0);
SCM(playerid, 0x9FCE6DFF, "Õóé Çíàåò ÷òî òóò ïèñàòü");
}
}
}
if(newkeys & 1024) // YOI 4 NIAA
{
if(IsPlayerInRangeOfPoint(playerid,2.0, 2015.9215,-2651.8269,11.2707))
{
if(GetPlayerData(playerid, QUESTHelloween1) == 3)
{
SetPlayerData(playerid, QUESTHelloween1, 4);
SetPlayerCheckpoint(playerid, 1966.4814,-2671.0747,11.1599, 3.0);
SCM(playerid, 0x9FCE6DFF, "Õóé Çíàåò ÷òî òóò ïèñàòü");
}
}
}
if(newkeys & 1024) // YOI 5 NIAA
{
if(IsPlayerInRangeOfPoint(playerid,2.0, 1966.4814,-2671.0747,11.1599))
{
if(GetPlayerData(playerid, QUESTHelloween1) == 4)
{
SetPlayerData(playerid, QUESTHelloween1, 5);
SetPlayerCheckpoint(playerid, 2039.4039,-2671.2263,11.1599, 3.0);
SCM(playerid, 0x9FCE6DFF, "Õóé Çíàåò ÷òî òóò ïèñàòü");
}
}
}
if(newkeys & 1024) // YOI 6 NIAA
{
if(IsPlayerInRangeOfPoint(playerid,2.0, 2039.4039,-2671.2263,11.1599))
{
if(GetPlayerData(playerid, QUESTHelloween1) == 5)
{
SetPlayerData(playerid, QUESTHelloween1, 6);
SetPlayerCheckpoint(playerid, 1899.6978,-2655.9736,11.1613, 3.0);
SCM(playerid, 0x9FCE6DFF, "Õóé Çíàåò ÷òî òóò ïèñàòü");
}
}
}
if(newkeys & 1024) // YOI 7 NIAA
{
if(IsPlayerInRangeOfPoint(playerid,2.0, 1899.6978,-2655.9736,11.1613))
{
if(GetPlayerData(playerid, QUESTHelloween1) == 6)
{
SetPlayerData(playerid, QUESTHelloween1, 7);
SetPlayerCheckpoint(playerid, 1933.0284,-2659.2686,11.0084, 3.0);
SCM(playerid, 0x9FCE6DFF, "Õóé Çíàåò ÷òî òóò ïèñàòü");
}
}
}
if(newkeys & 1024) // YOI 8 NIAA
{
if(IsPlayerInRangeOfPoint(playerid,2.0, 1933.0284,-2659.2686,11.0084))
{
if(GetPlayerData(playerid, QUESTHelloween1) == 7)
{
SetPlayerData(playerid, QUESTHelloween1, 8);
SetPlayerCheckpoint(playerid, 1953.4424,-2651.9602,11.2707, 3.0);
SCM(playerid, 0x9FCE6DFF, "Õóé Çíàåò ÷òî òóò ïèñàòü");
}
}
}
if(newkeys & 1024) // YOI 9 NIAA
{
if(IsPlayerInRangeOfPoint(playerid,2.0, 1953.4424,-2651.9602,11.2707))
{
if(GetPlayerData(playerid, QUESTHelloween1) == 8)
{
SetPlayerData(playerid, QUESTHelloween1, 9);
SetPlayerCheckpoint(playerid, 2012.9543,-2659.3840,11.2629, 3.0);
SCM(playerid, 0x9FCE6DFF, "Õóé Çíàåò ÷òî òóò ïèñàòü");
}
}
}
if(newkeys & 1024) // YOI 10 NIAA
{
if(IsPlayerInRangeOfPoint(playerid,2.0, 2012.9543,-2659.3840,11.2629))
{
if(GetPlayerData(playerid, QUESTHelloween1) == 9)
{
SCM(playerid, 0x9FCE6DFF, "Õóé Çíàåò ÷òî òóò ïèñàòü");
SCM(playerid, 0x9FCE6DFF, "Õóé Çíàåò ÷òî òóò ïèñàòü");
DisablePlayerCheckpoint(playerid);
SCM(playerid, 0x9FCE6DFF, "Õóé Çíàåò ÷òî òóò ïèñàòü");
SetPlayerData(playerid, QUESTHelloween, 2);
}
}
}
Пояснение : Сервер если что копия радмира. Форум буду посещать 24/7.
ВК: @afk2007
-