Можно, конечно. тригонометрия в помощь. Но я бы посоветовал сначала еще кое-что сделать, вдруг поможет. Если я прав, не цепляется фура из-за задержки стримера. в OnVehicleSteamedIn добавить следующие строчки: [pwn] if(GetVehicleModel(vehicleid) == 584 && vehicleid == FuelTrailer[forplayerid] && GetPlayerState(forplayerid) == PLAYER_STATE_DRIVER) { AttachTrailerToVehicle(FuelTrailer[forplayerid],GetPlayerVehicleID(forplayerid)); } [/pwn]
Добавлено (21.11.2009, 21:08) --------------------------------------------- Кстати, заканчиваю портировать оригинальный пен, который выкладывал в одной из соседних тем, на 0.3. Осталась одна проблема всего - респавн тачек около отеля. Причину проблемы выяснил, решение придумал - осталось реализовать.
А кто знает как ворота полицейского гаража открыть? Мод PEN1: LS+SF v.1.6 Alpha + SAMP 0.3
Поправка => При том условии что используется не [pwn] for(new h = 0; h < sizeof(GarageInfo); h++) { GarageG[h] = CreateObject(2957, GarageInfo[h][grEntrancex], GarageInfo[h][grEntrancey], GarageInfo[h][grEntrancez], GarageInfo[h][grEntrancerx], GarageInfo[h][grEntrancery], GarageInfo[h][grEntrancerz]); } Gatesid[0] = CreateObject(985, -2131.3835, -80.5887, 35.3203, 0.000000, 0.000000, 0.000000);//1 SF Band Priton Gate Gatesid[1] = CreateObject(985, -2123.3835, -80.5887, 35.3203, 0.000000, 0.000000, 180.000000);//2 SF Band Priton Gate Gatesid[2] = CreateObject(3294,365.462371,-1469.265869,31.912643,0.000000,0.000000,127.436462);//3 Street Racers Club Gate Gatesid[3] = CreateObject(3294,311.400329,-1555.610961,31.964050,0.000000,0.000000,233.696624);//4 Street Racers Club Gate Gatesid[4] = CreateObject(11327,1587.583374,-1638.267700,14.842614,0.000000,0.000000,90.016639);//5 Cops Base Gates obj = CreateObject(1501, -2163.6000,-226.0089,35.5000, 0.000000, 0.000000, 0.000000);// SF Band Priton Door obj = CreateObject(11387,284.569305,-1794.684936,6.457694,0.000000,0.000000,-269.000000);// LS Old Garage obj = CreateObject(11388,268.539489,-1804.232055,9.603762,0.000000,0.000000,91.000000);// LS Old Garage krisha obj = CreateObject(11389,268.724670,-1804.338378,6.213454,0.000000,0.000000,91.000000);// LS Old Garage int1 obj = CreateObject(11390,268.753021,-1804.397338,7.476713,0.000000,0.000000,91.000000);// LS Old Garage int2 obj = CreateObject(11416,264.978088,-1794.933715,5.251241,0.000000,0.000000,-88.000000);// LS Old Garage gate1 obj = CreateObject(11102,285.032440,-1808.573852,5.562258,0.000000,0.000000,-179.000000);// LS Old Garage gate2 obj = CreateObject(11391,277.110443,-1812.147338,4.439939,0.000000,0.000000,92.000000);// LS Old Garage int31 obj = CreateObject(14826,282.378753,-1808.785522,4.138863,0.000000,0.000000,89.000000);// LS Old Garage carhide2 obj = CreateObject(8168,311.045715,-1517.551513,25.756544,0.000000,0.000000,254.122406);//,cpy_s obj = CreateObject(1676,318.137237,-1501.677978,25.464277,0.000000,0.000000,237.596069);//,zapravka obj = CreateObject(1676,278.376251,-1782.520874,4.860865,0.000000,0.000000,0.000000);// LS Old Garage gas[/pwn]
а [pwn] Gatesid[0] = CreateStreamObject(985, -2131.3835, -80.5887, 35.3203, 0.000000, 0.000000, 0.000000, 250.0);//1 SF Band Priton Gate Gatesid[1] = CreateStreamObject(985, -2123.3835, -80.5887, 35.3203, 0.000000, 0.000000, 180.000000, 250.0);//2 SF Band Priton Gate Gatesid[2] = CreateStreamObject(3294, 365.462371, -1469.265869, 31.912643, 0.000000, 0.000000, 127.436462, 250.0);//3 Street Racers Club Gate Gatesid[3] = CreateStreamObject(3294, 311.400329, -1555.610961, 31.964050, 0.000000, 0.000000, 233.696624, 250.0);//4 Street Racers Club Gate Gatesid[4] = CreateStreamObject(11327, 1587.583374, -1638.267700, 14.842614, 0.000000, 0.000000, 90.016639, 250.0);//5 Cops Base Gates obj = CreateStreamObject(1501, -2163.6000, -226.0089, 35.5000, 0.000000, 0.000000, 0.000000, 250.0);// SF Band Priton Door obj = CreateStreamObject(11387, 284.569305, -1794.684936, 6.457694, 0.000000, 0.000000, -269.000000, 250.0);// LS Old Garage obj = CreateStreamObject(11388, 268.539489, -1804.232055, 9.603762, 0.000000, 0.000000, 91.000000, 250.0);// LS Old Garage krisha obj = CreateStreamObject(11389, 268.724670, -1804.338378, 6.213454, 0.000000, 0.000000, 91.000000, 250.0);// LS Old Garage int1 obj = CreateStreamObject(11390, 268.753021, -1804.397338, 7.476713, 0.000000, 0.000000, 91.000000, 250.0);// LS Old Garage int2 obj = CreateStreamObject(11416, 264.978088, -1794.933715, 5.251241, 0.000000, 0.000000, -88.000000, 250.0);// LS Old Garage gate1 obj = CreateStreamObject(11102, 285.032440, -1808.573852, 5.562258, 0.000000, 0.000000, -179.000000, 250.0);// LS Old Garage gate2 obj = CreateStreamObject(11391, 277.110443, -1812.147338, 4.439939, 0.000000, 0.000000, 92.000000, 250.0);// LS Old Garage int31 obj = CreateStreamObject(14826, 282.378753, -1808.785522, 4.138863, 0.000000, 0.000000, 89.000000, 250.0);// LS Old Garage carhide2 obj = CreateStreamObject(8168, 311.045715, -1517.551513, 25.756544, 0.000000, 0.000000, 254.122406, 250.0);//,cpy_s obj = CreateStreamObject(1676, 318.137237, -1501.677978, 25.464277, 0.000000, 0.000000, 237.596069, 250.0);//,zapravka obj = CreateStreamObject(1676, 278.376251, -1782.520874, 4.860865, 0.000000, 0.000000, 0.000000, 250.0);// LS Old Garage gas
[/pwn]
Сообщение отредактировал Dangerous - Вторник, 24.11.2009, 14:29
на скок лучше ? и где кстати прописаны координаты гаражных машин ?
Добавлено (25.11.2009, 05:20) --------------------------------------------- ещё нашёл баг со спавном ментов , при входе когда выбираешь скин мента , затем логинишься , он появляется в любом месте карты =(
Translation from english to russian Ravens_Roleplay_v3 (RC5.2) - 0.3c--------15%
на скок лучше ? и где кстати прописаны координаты гаражных машин ?
./scriptfiles/Configs/garage.cfg [pwn] 2313.293701,-1261.968017,24.536300,0.000000,0.000000,90.000000,2316.450683,-1261.604858,21.299999,90.063201,The State,~g~Toni's Small Garage,579,461,0,0,2000,175,7 2313.293701,-1278.627929,24.536300,0.000000,0.000000,90.000000,2316.121093,-1278.172973,21.299999,91.423103,The State,~g~Toni's Small Garage,411,522,0,0,2000,169,7 2313.293701,-1273.131103,24.536300,0.000000,0.000000,90.000000,2316.380615,-1272.590942,21.299999,88.900703,The State,~g~Toni's Small Garage,475,475,0,0,2000,169,7 2313.293701,-1267.392211,24.536300,0.000000,0.000000,90.000000,2317.046630,-1266.741821,21.299999,91.466300,The State,~g~Toni's Small Garage,418,461,0,0,2000,175,7 2461.258300,-1424.476684,24.345298,0.000000,0.000000,90.000000,2464.392822,-1424.067504,20.899999,88.850196,The State,~g~Verseti's Medium Garage,434,522,0,0,3500,173,10 2461.258300,-1413.433349,24.345298,0.000000,0.000000,90.000000,2464.490966,-1413.100463,20.899999,90.314399,The State,~g~Verseti's Medium Garage,522,560,0,0,3500,183,10[/pwn]
можешь норм исправить , на скок поднять, я хз потому что
[pwn]2313.293701,-1261.968017,24.536300,0.000000,0.000000,90.000000,2316.450683,-1261.604858,23.299999,90.063201,The State,~g~Toni's Small Garage,579,461,0,0,2000, 2313.293701,-1278.627929,24.536300,0.000000,0.000000,90.000000,2316.121093,-1278.172973,23.299999,91.423103,The State,~g~Toni's Small Garage,411,522,0,0,2000, 2313.293701,-1273.131103,24.536300,0.000000,0.000000,90.000000,2316.380615,-1272.590942,23.299999,88.900703,The State,~g~Toni's Small Garage,475,475,0,0,2000, 2313.293701,-1267.392211,24.536300,0.000000,0.000000,90.000000,2317.046630,-1266.741821,23.299999,91.466300,The State,~g~Toni's Small Garage,418,461,0,0,2000, 2461.258300,-1424.476684,24.345298,0.000000,0.000000,90.000000,2464.392822,-1424.067504,23.899999,88.850196,The State,~g~Verseti's Medium Garage,434,522,0,0,3 2461.258300,-1413.433349,24.345298,0.000000,0.000000,90.000000,2464.490966,-1413.100463,23.899999,90.314399,The State,~g~Verseti's Medium Garage,522,560,0,0,3 [/pwn]
Осталась одна проблема всего - респавн тачек около отеля.
У себя я данную проблему решил так:
когда игрок спавнится в отеле (интерьер id 15 (вродебы)) помещаем игрока в другой Вирутальный Мир (например 15 (как и id интерьера), затем когда игрок выходит на улицу помещаем его обратно в нулевой Виртуальный Мир и тачки не будут раскиданы где попало
Осталась одна проблема всего - респавн тачек около отеля.
У себя я данную проблему решил так:
когда игрок спавнится в отеле (интерьер id 15 (вродебы)) помещаем игрока в другой Вирутальный Мир (например 15 (как и id интерьера), затем когда игрок выходит на улицу помещаем его обратно в нулевой Виртуальный Мир и тачки не будут раскиданы где попало