Добро пожаловать!

Зарегистрировавшись у нас, вы сможете обсуждать, делиться и отправлять личные сообщения другим участникам нашего сообщества.

Зарегистрироваться!
  • Если Вы желаете помогать развитию проекта, готовы заполнять раздел(-ы) и подсказывать другим пользователям на портале, есть возможность попасть в команду редакторов. Для этого следует обратиться в техническую поддержку
Пользователь
Регистрация
14 Сен 2024
Сообщения
63
Не знаю как поваксить дверям мод warzon открываться только через команду /opengate

Не знаю как пофикстиь помогите пожалуйста всё что попросите приложу щас не знаю что прикладывать
 
Пользователь
Регистрация
12 Фев 2024
Сообщения
40
В public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
Добавь строчку:
if !DoorInfo[45][dStatus] && IsPlayerInRangeOfPoint(playerid, 3.0, -2095.651611, 509.676605, 1486.664429) *then
return callcmd::eek:pengate(playerid);

если нет Doorinfo
то вот
Pawn:
enum doorInfo // 0 просто, с +-
{
    dTypeMove,
    dOrg,
    dObID,
    Float:dPos[4],
    Float:dPosEnd[4],
    bool:dStatus,
    dWorld,
    dInterior,
    Float:dSpeed,
    dName[47],
}
new DoorInfo[79][doorInfo] =
{
    //LSPD
    {1, TEAM_LSPD, 1495, {-476.120453, 2204.334717, 1600.070313, 180.000000}, {-476.059692, 2204.298095, 1600.070312, 180.0}, false, 2, -1, 0.25, "{A19D9D}Открыть\n{FFFFFF}H"},
    {1, TEAM_LSPD, 1495, {-465.676300, 2194.274658, 1600.070313, 90.000000}, {-465.752593, 2194.211181, 1600.070312, 90.0}, false, 2, -1, 0.25, "{A19D9D}Открыть\n{FFFFFF}H"},
    {1, TEAM_LSPD, 1495, {-460.397339, 2206.019287, 1600.070313, 0.000000}, {-460.459320, 2206.056884, 1600.070312, 0.0}, false, 2, -1, 0.25, "{A19D9D}Открыть\n{FFFFFF}H"},
    {1, TEAM_LSPD, 1495, {-480.859741, 2202.000000, 1600.070313, 90.000000}, {-480.894195, 2201.912841, 1600.070312, 90.0}, false, 2, -1, 0.25, "{A19D9D}Открыть\n{FFFFFF}H"},
    {1, TEAM_LSPD, 1495, {-469.717407, 2189.848633, 1600.070313, 180.000000}, {-469.646972, 2189.799072, 1600.070312, 180.0}, false, 2, -1, 0.25, "{A19D9D}Открыть\n{FFFFFF}H"},
    {1, TEAM_LSPD, 1495, {-469.717407, 2186.706299, 1600.070313, 180.000000}, {-469.656707, 2186.666503, 1600.070312, 180.0}, false, 2, -1, 0.25, "{A19D9D}Открыть\n{FFFFFF}H"},
    {1, TEAM_LSPD, 1495, {-460.303162, 2187.655762, 1600.070313, 180.000000}, {-460.250976, 2187.583251, 1600.070312, 180.0}, false, 2, -1, 0.25, "{A19D9D}Открыть\n{FFFFFF}H"},
    {1, TEAM_LSPD, 1495, {-460.303162, 2178.173340, 1600.070313, 180.000000}, {-460.240570, 2178.106445, 1600.070312, 180.0}, false, 2, -1, 0.25, "{A19D9D}Открыть\n{FFFFFF}H"},
    {1, TEAM_LSPD, 1495, {-472.156158, 2200.668701, 1600.070313, 90.000000}, {-472.227996, 2200.595947, 1600.070312, 90.0}, false, 2, -1, 0.25, "{A19D9D}Открыть\n{FFFFFF}H"},
    {1, TEAM_LSPD, 1495, {-472.180695, 2191.246826, 1600.070313, 90.000000}, {-472.200073, 2191.196533, 1600.070312, 90.0}, false, 2, -1, 0.25, "{A19D9D}Открыть\n{FFFFFF}H"},
    //RCPD
    {1, TEAM_RCPD, 1495, {-476.120453, 2204.334717, 1600.070313, 180.000000}, {-476.059692, 2204.298095, 1600.070312, 180.0}, false, 3, -1, 0.25, "None"},
    {1, TEAM_RCPD, 1495, {-465.676300, 2194.274658, 1600.070313, 90.000000}, {-465.752593, 2194.211181, 1600.070312, 90.0}, false, 3, -1, 0.25, "None"},
    {1, TEAM_RCPD, 1495, {-460.397339, 2206.019287, 1600.070313, 0.000000}, {-460.459320, 2206.056884, 1600.070312, 0.0}, false, 3, -1, 0.25, "None"},
    {1, TEAM_RCPD, 1495, {-480.859741, 2202.000000, 1600.070313, 90.000000}, {-480.894195, 2201.912841, 1600.070312, 90.0}, false, 3, -1, 0.25, "None"},
    {1, TEAM_RCPD, 1495, {-469.717407, 2189.848633, 1600.070313, 180.000000}, {-469.646972, 2189.799072, 1600.070312, 180.0}, false, 3, -1, 0.25, "None"},
    {1, TEAM_RCPD, 1495, {-469.717407, 2186.706299, 1600.070313, 180.000000}, {-469.656707, 2186.666503, 1600.070312, 180.0}, false, 3, -1, 0.25, "None"},
    {1, TEAM_RCPD, 1495, {-460.303162, 2187.655762, 1600.070313, 180.000000}, {-460.250976, 2187.583251, 1600.070312, 180.0}, false, 3, -1, 0.25, "None"},
    {1, TEAM_RCPD, 1495, {-460.303162, 2178.173340, 1600.070313, 180.000000}, {-460.240570, 2178.106445, 1600.070312, 180.0}, false, 3, -1, 0.25, "None"},
    {1, TEAM_RCPD, 1495, {-472.156158, 2200.668701, 1600.070313, 90.000000}, {-472.227996, 2200.595947, 1600.070312, 90.0}, false, 3, -1, 0.25, "None"},
    {1, TEAM_RCPD, 1495, {-472.180695, 2191.246826, 1600.070313, 90.000000}, {-472.200073, 2191.196533, 1600.070312, 90.0}, false, 3, -1, 0.25, "None"},
    //SFPD
    {1, TEAM_SFPD, 1495, {-476.120453, 2204.334717, 1600.070313, 180.000000}, {-476.059692, 2204.298095, 1600.070312, 180.0}, false, 4, -1, 0.25, "None"},
    {1, TEAM_SFPD, 1495, {-465.676300, 2194.274658, 1600.070313, 90.000000}, {-465.752593, 2194.211181, 1600.070312, 90.0}, false, 4, -1, 0.25, "None"},
    {1, TEAM_SFPD, 1495, {-460.397339, 2206.019287, 1600.070313, 0.000000}, {-460.459320, 2206.056884, 1600.070312, 0.0}, false, 4, -1, 0.25, "None"},
    {1, TEAM_SFPD, 1495, {-480.859741, 2202.000000, 1600.070313, 90.000000}, {-480.894195, 2201.912841, 1600.070312, 90.0}, false, 4, -1, 0.25, "None"},
    {1, TEAM_SFPD, 1495, {-469.717407, 2189.848633, 1600.070313, 180.000000}, {-469.646972, 2189.799072, 1600.070312, 180.0}, false, 4, -1, 0.25, "None"},
    {1, TEAM_SFPD, 1495, {-469.717407, 2186.706299, 1600.070313, 180.000000}, {-469.656707, 2186.666503, 1600.070312, 180.0}, false, 4, -1, 0.25, "None"},
    {1, TEAM_SFPD, 1495, {-460.303162, 2187.655762, 1600.070313, 180.000000}, {-460.250976, 2187.583251, 1600.070312, 180.0}, false, 4, -1, 0.25, "None"},
    {1, TEAM_SFPD, 1495, {-460.303162, 2178.173340, 1600.070313, 180.000000}, {-460.240570, 2178.106445, 1600.070312, 180.0}, false, 4, -1, 0.25, "None"},
    {1, TEAM_SFPD, 1495, {-472.156158, 2200.668701, 1600.070313, 90.000000}, {-472.227996, 2200.595947, 1600.070312, 90.0}, false, 4, -1, 0.25, "None"},
    {1, TEAM_SFPD, 1495, {-472.180695, 2191.246826, 1600.070313, 90.000000}, {-472.200073, 2191.196533, 1600.070312, 90.0}, false, 4, -1, 0.25, "None"},
    //LVPD 
    {1, TEAM_LVPD, 1495, {-476.120453, 2204.334717, 1600.070313, 180.000000}, {-476.059692, 2204.298095, 1600.070312, 180.0}, false, 5, -1, 0.25, "None"},
    {1, TEAM_LVPD, 1495, {-465.676300, 2194.274658, 1600.070313, 90.000000}, {-465.752593, 2194.211181, 1600.070312, 90.0}, false, 5, -1, 0.25, "None"},
    {1, TEAM_LVPD, 1495, {-460.397339, 2206.019287, 1600.070313, 0.000000}, {-460.459320, 2206.056884, 1600.070312, 0.0}, false, 5, -1, 0.25, "None"},
    {1, TEAM_LVPD, 1495, {-480.859741, 2202.000000, 1600.070313, 90.000000}, {-480.894195, 2201.912841, 1600.070312, 90.0}, false, 5, -1, 0.25, "None"},
    {1, TEAM_LVPD, 1495, {-469.717407, 2189.848633, 1600.070313, 180.000000}, {-469.646972, 2189.799072, 1600.070312, 180.0}, false, 5, -1, 0.25, "None"},
    {1, TEAM_LVPD, 1495, {-469.717407, 2186.706299, 1600.070313, 180.000000}, {-469.656707, 2186.666503, 1600.070312, 180.0}, false, 5, -1, 0.25, "None"},
    {1, TEAM_LVPD, 1495, {-460.303162, 2187.655762, 1600.070313, 180.000000}, {-460.250976, 2187.583251, 1600.070312, 180.0}, false, 5, -1, 0.25, "None"},
    {1, TEAM_LVPD, 1495, {-460.303162, 2178.173340, 1600.070313, 180.000000}, {-460.240570, 2178.106445, 1600.070312, 180.0}, false, 5, -1, 0.25, "None"},
    {1, TEAM_LVPD, 1495, {-472.156158, 2200.668701, 1600.070313, 90.000000}, {-472.227996, 2200.595947, 1600.070312, 90.0}, false, 5, -1, 0.25, "None"},
    {1, TEAM_LVPD, 1495, {-472.180695, 2191.246826, 1600.070313, 90.000000}, {-472.200073, 2191.196533, 1600.070312, 90.0}, false, 5, -1, 0.25, "None"},
    {0, TEAM_BANK, 1495, {-2690.8259, 807.4251, 1499.9404, 0.00}, {-2692.1459, 807.4251, 1499.9404, 0.0}, false, -1, -1, 3.0, "{A19D9D}[ Н - для сотрудников ]"},
    //
    {0, TEAM_LICENSERS, 19859, {1534.893311, 1273.516724, 11.067500, 0.0}, {1533.693311, 1273.516724, 11.067500, 0.0}, false, 5, -1, 3.0, "None"},
    {0, TEAM_MERIALS, 1495, {1490.244873, -1282.072144, 112.792702, 90.0}, {1490.24, -1283.57, 112.79, 90.0}, false, 2, -1, 3.0, "{FB8F4C}Открыть\n\n{FFFFFF}H"},
    {0, TEAM_MERIALS, 1495, {1995.655518, 1138.021729, 1037.639526, 0.0}, {1994.364013, 1138.021728, 1037.639526, 0.0}, false, 2, -1, 3.0, "{FB8F4C}Открыть\n\n{FFFFFF}H"},
    {0, TEAM_MERIALS, 1495, {1995.673462, 1109.162598, 1037.639526, 0.0}, {1994.362792, 1109.162597, 1037.639526, 0.0}, false, 2, -1, 3.0, "{FB8F4C}Открыть\n\n{FFFFFF}H"},
    //
    {0, TEAM_NONE, 1569, {-2095.651611, 509.676605, 1486.664429, 270.0}, {-2095.651611, 510.966583, 1486.664428, 270.0}, false, 5, -1, 3.0, "{FFFFFF}Служебный вход\n\n{F9AD43}Открыть \'ALT\'"},
    {0, TEAM_LICENSERS, 19859, {1525.322876, 1273.516724, 11.067504, 0.0}, {1524.122876, 1273.516724, 11.067504, 0.0}, false, 5, -1, 3.0, "None"},
    {0, TEAM_LICENSERS, 19859, {1543.593750, 1296.593262, 11.067504, 270.0}, {1543.593750, 1297.793262, 11.067504, 270.0}, false, 5, -1, 3.0, "None"},
    {0, TEAM_LICENSERS, 19859, {1538.090576, 1297.344849, 11.067504, 0.0}, {1536.890576, 1297.344849, 11.067504, 0.0}, false, 5, -1, 3.0, "None"},
   
    // SMI LS
    {0, TEAM_RADIO, 3089, {2137.968262, 2511.630371, 1025.276367, 90.0}, {2137.968261, 2510.409179, 1025.276367, 90.0}, false, 1, 157, 3.0, "None"},
    {0, TEAM_RADIO, 3089, {2132.879395, 2514.468262, 1025.276367, 180.0}, {2134.100585, 2514.468261, 1025.276367, 180.0}, false, 1, 157, 3.0, "None"},
    {0, TEAM_RADIO, 3089, {2128.218506, 2514.470215, 1025.276367, 180.0}, {2129.439697, 2514.470214, 1025.276367, 180.0}, false, 1, 157, 3.0, "None"},
    {0, TEAM_RADIO, 3089, {2115.410156, 2504.860352, 1025.276367, 180.0}, {2116.631347, 2504.860351, 1025.276367, 180.0}, false, 1, 157, 3.0, "None"},
    {0, TEAM_RADIO, 3089, {2115.410156, 2514.470215, 1025.276367, 180.0}, {2116.621337, 2514.470214, 1025.276367, 180.0}, false, 1, 157, 3.0, "None"},
    {0, TEAM_RADIO, 3089, {2106.558594, 2507.943359, 1025.276367, 90.0}, {2106.558593, 2506.722167, 1025.276367, 90.0}, false, 1, 157, 3.0, "None"},
    {0, TEAM_RADIO, 3089, {2109.057617, 2519.400391, 1024.815918, 180.0}, {2110.268798, 2519.400390, 1024.815917, 180.0}, false, 1, 157, 3.0, "None"},
    {0, TEAM_RADIO, 3089, {2098.798584, 2487.779785, 1024.815918, 224.999802}, {2099.655273, 2488.636474, 1024.815917, 224.999801}, false, 1, 157, 3.0, "None"},
    {0, TEAM_RADIO, 3089, {1511.430542, 1946.574707, 1026.397217, 90.0}, {1511.430541, 1945.353515, 1026.397216, 90.0}, false, 1, 158, 3.0, "None"},
    {0, TEAM_RADIO, 3089, {1511.430542, 1952.786499, 1026.397217, -90.0}, {1511.430541, 1953.997680, 1026.397216, -90.0}, false, 1, 158, 3.0, "None"},
   
    // SMI LV
    {0, TEAM_RADIOLV, 3089, {2137.968262, 2511.630371, 1025.276367, 90.0}, {2137.968261, 2510.409179, 1025.276367, 90.0}, false, 2, 157, 3.0, "None"},
    {0, TEAM_RADIOLV, 3089, {2132.879395, 2514.468262, 1025.276367, 180.0}, {2134.100585, 2514.468261, 1025.276367, 180.0}, false, 2, 157, 3.0, "None"},
    {0, TEAM_RADIOLV, 3089, {2128.218506, 2514.470215, 1025.276367, 180.0}, {2129.439697, 2514.470214, 1025.276367, 180.0}, false, 2, 157, 3.0, "None"},
    {0, TEAM_RADIOLV, 3089, {2115.410156, 2504.860352, 1025.276367, 180.0}, {2116.631347, 2504.860351, 1025.276367, 180.0}, false, 2, 157, 3.0, "None"},
    {0, TEAM_RADIOLV, 3089, {2115.410156, 2514.470215, 1025.276367, 180.0}, {2116.621337, 2514.470214, 1025.276367, 180.0}, false, 2, 157, 3.0, "None"},
    {0, TEAM_RADIOLV, 3089, {2106.558594, 2507.943359, 1025.276367, 90.0}, {2106.558593, 2506.722167, 1025.276367, 90.0}, false, 2, 157, 3.0, "None"},
    {0, TEAM_RADIOLV, 3089, {2109.057617, 2519.400391, 1024.815918, 180.0}, {2110.268798, 2519.400390, 1024.815917, 180.0}, false, 2, 157, 3.0, "None"},
    {0, TEAM_RADIOLV, 3089, {2098.798584, 2487.779785, 1024.815918, 224.999802}, {2099.655273, 2488.636474, 1024.815917, 224.999801}, false, 2, 157, 3.0, "None"},
    {0, TEAM_RADIOLV, 3089, {1511.430542, 1946.574707, 1026.397217, 90.0}, {1511.430541, 1945.353515, 1026.397216, 90.0}, false, 2, 158, 3.0, "None"},
    {0, TEAM_RADIOLV, 3089, {1511.430542, 1952.786499, 1026.397217, -90.0}, {1511.430541, 1953.997680, 1026.397216, -90.0}, false, 2, 158, 3.0, "None"},
   
    // SMI SF
    {0, TEAM_RADIOSF, 3089, {2137.968262, 2511.630371, 1025.276367, 90.0}, {2137.968261, 2510.409179, 1025.276367, 90.0}, false, 3, 157, 3.0, "None"},
    {0, TEAM_RADIOSF, 3089, {2132.879395, 2514.468262, 1025.276367, 180.0}, {2134.100585, 2514.468261, 1025.276367, 180.0}, false, 3, 157, 3.0, "None"},
    {0, TEAM_RADIOSF, 3089, {2128.218506, 2514.470215, 1025.276367, 180.0}, {2129.439697, 2514.470214, 1025.276367, 180.0}, false, 3, 157, 3.0, "None"},
    {0, TEAM_RADIOSF, 3089, {2115.410156, 2504.860352, 1025.276367, 180.0}, {2116.631347, 2504.860351, 1025.276367, 180.0}, false, 3, 157, 3.0, "None"},
    {0, TEAM_RADIOSF, 3089, {2115.410156, 2514.470215, 1025.276367, 180.0}, {2116.621337, 2514.470214, 1025.276367, 180.0}, false, 3, 157, 3.0, "None"},
    {0, TEAM_RADIOSF, 3089, {2106.558594, 2507.943359, 1025.276367, 90.0}, {2106.558593, 2506.722167, 1025.276367, 90.0}, false, 3, 157, 3.0, "None"},
    {0, TEAM_RADIOSF, 3089, {2109.057617, 2519.400391, 1024.815918, 180.0}, {2110.268798, 2519.400390, 1024.815917, 180.0}, false, 3, 157, 3.0, "None"},
    {0, TEAM_RADIOSF, 3089, {2098.798584, 2487.779785, 1024.815918, 224.999802}, {2099.655273, 2488.636474, 1024.815917, 224.999801}, false, 3, 157, 3.0, "None"},
    {0, TEAM_RADIOSF, 3089, {1511.430542, 1946.574707, 1026.397217, 90.0}, {1511.430541, 1945.353515, 1026.397216, 90.0}, false, 3, 158, 3.0, "None"},
    {0, TEAM_RADIOSF, 3089, {1511.430542, 1952.786499, 1026.397217, -90.0}, {1511.430541, 1953.997680, 1026.397216, -90.0}, false, 3, 158, 3.0, "None"}
};
new dDoor[sizeof(DoorInfo)];
 
Последнее редактирование модератором:
Пользователь
Регистрация
12 Фев 2024
Сообщения
40
Есть так

if(newkeys == KEY_CTRL_BACK)
{
new forcount = MuchNumber(sizeof GateInfo, sizeof BarrierInfo, sizeof DoorInfo);
for(new i;i < forcount;i ++)
{
if i < sizeof DoorInfo *then
{
if IsPlayerInRangeOfPoint(playerid,3.0,DoorInfo[dPos][0],DoorInfo[dPos][1],DoorInfo[dPos][2]) *then
{
if DoorInfo[dWorld] ==-1 || GetPlayerVirtualWorld(playerid) == DoorInfo[dWorld] *then
{
if DoorInfo[dOrg] == TEAM_NONE || GetTeamID(playerid) == DoorInfo[dOrg] || ( IsACopDoor(i) && IsACop(playerid) ) || PI[playerid][pAdmin] *then
{
if !DoorInfo[dStatus] *then
{
MoveDynamicObject(dDoor,DoorInfo[dPosEnd][0],DoorInfo[dPosEnd][1],DoorInfo[dPosEnd][2],DoorInfo[dSpeed],0.0,0.0, DoorInfo[dTypeMove] ? (DoorInfo[dPosEnd][3]+float(getMeToDoor(playerid, i))):(DoorInfo[dPosEnd][3]));
CallTimeOutFunction("DoorClose", 6000, false, "i", i);
DoorInfo[dStatus] = true;
SetPlayerChatBubble(playerid, !"Открыл дверь", COLOR_GREEN, 10.0, 5000);
}
break;
}
else return SCM(playerid, COLOR_RED, !"[Ошибка] {FFFFFF}У вас нет ключей от этой двери!");
}
}
}
}
}
 
Пользователь
Регистрация
14 Сен 2024
Сообщения
63
Да и добавь тот который последний скинул

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
arizona.pwn(297) : error 029: invalid expression, assumed zero
arizona.pwn(18968) : error 017: undefined symbol "opengate"
arizona.pwn(18970) : warning 217: loose indentation
arizona.pwn(18977) : warning 213: tag mismatch: expected tag "doorInfo", but found none ("_")
arizona.pwn(18977) : warning 213: tag mismatch: expected tag "doorInfo", but found none ("_")
arizona.pwn(18977) : warning 213: tag mismatch: expected tag "doorInfo", but found none ("_")
arizona.pwn(18979) : error 033: array must be indexed (variable "DoorInfo")
arizona.pwn(18979) : error 033: array must be indexed (variable "DoorInfo")
arizona.pwn(18981) : error 033: array must be indexed (variable "DoorInfo")
arizona.pwn(18983) : error 033: array must be indexed (variable "DoorInfo")
arizona.pwn(18985) : error 035: argument type mismatch (argument 1)
arizona.pwn(18987) : error 047: array sizes do not match, or destination array is too small
arizona.pwn(18999) : warning 217: loose indentation
arizona.pwn(67532) : warning 203: symbol is never used: "ending"
arizona.pwn(1311) : warning 203: symbol is never used: "RadioInfo"
arizona.pwn(8391) : warning 203: symbol is never used: "TOTALFRACTIONS"

8 Errors.
 
Активный
Пользователь
Регистрация
26 Апр 2022
Сообщения
168
Сверху