Server Crash on KEY_SECONDARY_ATTACK?
#1

Why this script does crash the server?


pawn Код:
else if(newkeys == KEY_SECONDARY_ATTACK)
    {
  new Float:cx, Float:cy, Float:cz;
        GetPlayerPos(playerid, cx, cy, cz);
        if(PlayerToPointStripped(1.0, playerid, -2463.4556, 131.7496, 35.1719, cx, cy, cz))
        {
            PlayerActionMessage(playerid, 15.0, "apre la porta ed entra");
            SetTimerEx("TogglePlayerVisual", 100, false, "dd", playerid);
            SetPlayerPos(playerid, 2217.0703, -1150.1325, 1025.7968);
            GameTextForPlayer(playerid, "~w~Biffin Bridge Hotel", 5000, 1);
            SetPlayerInterior(playerid, 15);
            SetPlayerFacingAngle(playerid, 1.0);
            PlayerInfo[playerid][pInt] = 15;
        }
        else if(PlayerToPointStripped(1.0, playerid, 2214.3913, -1150.4794, 1025.7968, cx, cy, cz))
        {
            SetPlayerPos(playerid, -2460.5696, 134.1372, 35.1719);
            PlayerActionMessage(playerid, 15.0, "apre la porta ed entra");
            SetTimerEx("TogglePlayerVisual", 100, false, "dd", playerid);
            SetPlayerInterior(playerid, 0);
            SetPlayerFacingAngle(playerid, 1.0);
            PlayerInfo[playerid][pInt] = 0;
        }
        else if(PlayerToPointStripped(1.5, playerid, 2265.8918, 1647.4984, 1084.2343, cx, cy, cz) || PlayerToPointStripped(1.5, playerid, 1963.7113, 972.4249, 994.4688, cx, cy, cz) || PlayerToPointStripped(1.5, playerid, -1983.8998, 429.7286, 27.9407, cx, cy, cz) || PlayerToPointStripped(1.5, playerid, -2059.0315, 459.7961, 139.7422, cx, cy, cz))
        {
            if(PlayerInfo[playerid][pLeader] == 12 || PlayerInfo[playerid][pMember] == 12)
            {
                SetPlayerPos(playerid, 2262.9409, 1647.6605, 1084.2343);
                SetPlayerInterior(playerid, 1);
                SendClientMessage(playerid, 0x0090EE90, " {0000ff}[INFO]{ffffff} Per utilizzare l'ascensore usa /ascensore");
            }
            else
            {
                GameTextForPlayer(playerid, "~r~Solo Staff ", 5000, 3);
            }
        }
        else if(PlayerToPointStripped(1.5, playerid, -1754.1957, 963.5029, 24.8827, cx, cy, cz))
        {
            GameTextForPlayer(playerid, "~w~Casino ~g~Four Leaf", 5000, 1);
            SetPlayerInterior(playerid, 1);
            PlayerActionMessage(playerid, 15.0,"apre la porta ed entra");
            SetTimerEx("TogglePlayerVisual", 100, false, "dd", playerid);
            PlayerInfo[playerid][pInt] = 1;
            SetPlayerPos(playerid, 2233.9909, 1711.5317, 1011.5468);
            SetPlayerFacingAngle(playerid, 180.0);
            pInCasino[playerid] = 1;
        }
        else if(PlayerToPointStripped(1.5, playerid, 2233.8774, 1713.6867, 1012.2141, cx, cy, cz))
        {
            new cash = GetPlayerMoney(playerid);
            pInCasino[playerid] = 0;
            if(0 > cash)
            {
                PlayerInfo[playerid][pAccount] += cash;
                SendClientMessage(playerid, 0xFF6347AA, " Eri in debito e la Banca ha pagato con il tuo conto");
                SafeResetPlayerMoney(playerid);
            }
            PlayerActionMessage(playerid, 15.0, "apre la porta ed entra");
            SetTimerEx("TogglePlayerVisual", 100, false, "dd", playerid);
            SetPlayerInterior(playerid, 0);

            PlayerInfo[playerid][pInt] = 0;
            SetPlayerPos(playerid, -1754.1044, 959.8477, 24.8827);
            SetPlayerFacingAngle(playerid, 180.0);
        }
        if(PlayerToPointStripped(1.5, playerid, -2055.9908, 455.5625, 35.1719, cx, cy, cz))
        {
            GameTextForPlayer(playerid, "~w~Casino ~r~Four Dragons", 5000, 1);
            SetPlayerInterior(playerid, 10);
            PlayerActionMessage(playerid, 15.0, "apre la porta ed entra");
            SetTimerEx("TogglePlayerVisual", 100, false, "dd", playerid);
            PlayerInfo[playerid][pInt] = 10;
            SetPlayerPos(playerid, 2014.9295, 1017.9926, 996.5758);
            SetPlayerFacingAngle(playerid, 89.6272);
        }
        else if(PlayerToPointStripped(1.5, playerid, 1995.0362, 1017.689, 994.8906, cx, cy, cz))
        {
            PlayerActionMessage(playerid, 15.0, "apre la porta ed entra");
            SetTimerEx("TogglePlayerVisual", 100, false, "dd", playerid);
            SetPlayerInterior(playerid, 0);

            PlayerInfo[playerid][pInt] = 0;
            SetPlayerPos(playerid, -2052.3267, 458.4617, 35.1719);
        }
        else if(PlayerToPointStripped(1.0, playerid, -1605.5702, 711.3026, 13.8671, cx, cy, cz))
        {
            GameTextForPlayer(playerid, "~r~Centrale di polizia", 5000, 1);
            SetPlayerInterior(playerid, 6);
            PlayerActionMessage(playerid, 15.0, "apre la porta ed entra");
            SetTimerEx("TogglePlayerVisual", 100, false, "dd", playerid);
            SetPlayerPos(playerid, 246.7079, 66.2238, 1003.6406);
            PlayerInfo[playerid][pInt] = 6;
        }
        else if(PlayerToPointStripped(1.0, playerid, 246.5325, 62.425, 1003.6406, cx, cy, cz))
        {
            PlayerActionMessage(playerid, 15.0, "apre la porta ed entra");
            SetTimerEx("TogglePlayerVisual", 100, false, "dd", playerid);
            SetPlayerInterior(playerid, 0);
            SetPlayerPos(playerid, -1605.7686, 713.9351, 13.1829);
            PlayerInfo[playerid][pInt] = 0;
        }
        else if(PlayerToPointStripped(1.0, playerid, 488.2531, -82.7632, 998.7578, cx, cy, cz))
        {
            SetPlayerPos(playerid, 2277.5942, -1139.8884, 1050.8984);
            GameTextForPlayer(playerid, "~w~Restroom", 5000, 3);
            SetPlayerInterior(playerid, 11);
            PlayerActionMessage(playerid, 15.0, "apre la porta ed entra");
            SetTimerEx("TogglePlayerVisual", 100, false, "dd", playerid);
            PlayerInfo[playerid][pInt] = 11;
        }
        else if(PlayerToPointStripped(2.0, playerid, 2280.0476, -1139.5413, 1050.8984, cx, cy, cz))
        {
            SetPlayerPos(playerid, 490.9059, -81.4256, 998.7578);
            GameTextForPlayer(playerid, "~w~Ten Green Bottles", 5000, 3);
            SetPlayerInterior(playerid, 11);
            PlayerInfo[playerid][pInt] = 11;
        }
        else if(PlayerToPointStripped(1.0, playerid, -2501.3538, 2318.6892, 4.9843, cx, cy, cz))
        {
            GameTextForPlayer(playerid, "~w~24/7", 5000, 1);
            SetPlayerInterior(playerid, 6);
            PlayerActionMessage(playerid, 15.0, "apre la porta ed entra");
            SetTimerEx("TogglePlayerVisual", 100, false, "dd", playerid);
            SetPlayerPos(playerid, -26.6917, -55.715, 1003.5468);
            PlayerInfo[playerid][pInt] = 6;
        }
        else if(PlayerToPointStripped(1.0, playerid, -27.3919, -58.2529, 1003.5468, cx, cy, cz))
        {
            PlayerActionMessage(playerid, 15.0, "apre la porta ed entra");
            SetTimerEx("TogglePlayerVisual", 100, false, "dd", playerid);
            SetPlayerInterior(playerid, 0);
            SetPlayerPos(playerid, -2501.1026, 2320.5505, 4.9843);
            PlayerInfo[playerid][pInt] = 0;
        }
        else if(PlayerToPointStripped(1.0, playerid, -1582.0206, 956.0842, 7.1875, cx, cy, cz))
        {
            GameTextForPlayer(playerid, "~w~24/7", 5000, 1);
            SetPlayerInterior(playerid, 18);
            PlayerActionMessage(playerid, 15.0, "apre la porta ed entra");
            SetTimerEx("TogglePlayerVisual", 100, false, "dd", playerid);
            SetPlayerPos(playerid, -30.9467, -89.6096, 1003.5468);
            PlayerInfo[playerid][pInt] = 18;
        }
        else if(PlayerToPointStripped(1.0, playerid, -30.9299, -92.0114, 1003.5468, cx, cy, cz))
        {
            if(!GetPlayerVirtualWorld(playerid))
            {
                PlayerActionMessage(playerid, 15.0, "apre la porta ed entra");
                SetTimerEx("TogglePlayerVisual", 100, false, "dd", playerid);
                SetPlayerInterior(playerid, 0);
                SetPlayerPos(playerid, -1580.1341, 956.0645, 7.1875);
                PlayerInfo[playerid][pInt] = 0;
            }
            else if(GetPlayerVirtualWorld(playerid) == 2)
            {
                SetPlayerVirtualWorld(playerid, 0);
                PlayerInfo[playerid][pVirWorld] = 0;
                PlayerActionMessage(playerid, 15.0, "apre la porta ed entra");
                SetTimerEx("TogglePlayerVisual", 100, false, "dd", playerid);
                SetPlayerInterior(playerid, 0);
                SetPlayerPos(playerid, -2581.7188, 309.8193, 5.1796);
                PlayerInfo[playerid][pInt] = 0;
            }
        }
        else if(PlayerToPointStripped(1.0, playerid, -2579.4375, 310.1076, 5.1796, cx, cy, cz))
        {
            SetPlayerVirtualWorld(playerid, 2);
            PlayerInfo[playerid][pVirWorld] = 2;
            PlayerActionMessage(playerid, 15.0, "apre la porta ed entra");
            SetTimerEx("TogglePlayerVisual", 100, false, "dd", playerid);
            GameTextForPlayer(playerid, "~w~24/7", 5000, 1);
            SetPlayerInterior(playerid, 18);
            SetPlayerPos(playerid, -30.9467, -89.6096, 1003.5468);
            PlayerInfo[playerid][pInt] = 18;
        }
        else if(PlayerToPointStripped(1.0, playerid, -2551.1063, 193.6611, 6.2267, cx, cy, cz))
        {
            GameTextForPlayer(playerid, "~w~San Fierro Disco", 5000, 1);
            SetPlayerInterior(playerid, 17);
            PlayerActionMessage(playerid, 15.0, "apre la porta ed entra");
            SetTimerEx("TogglePlayerVisual", 100, false, "dd", playerid);
            SetPlayerPos(playerid, 493.389, -22.7213, 1000.6796);
            PlayerInfo[playerid][pInt] = 17;
        }
        else if(PlayerToPointStripped(1.0, playerid, 493.4393, -24.917, 1000.6718, cx, cy, cz))
        {
            PlayerActionMessage(playerid, 15.0, "apre la porta ed entra");
            SetTimerEx("TogglePlayerVisual", 100, false, "dd", playerid);
            SetPlayerInterior(playerid, 0);
            SetPlayerPos(playerid, -2552.5699, 193.0543, 6.1441);
            PlayerInfo[playerid][pInt] = 0;
        }
        else if(PlayerToPointStripped(1.0, playerid, 2310.0183, -1643.467, 14.8269, cx, cy, cz))
        {
            GameTextForPlayer(playerid, "~w~Ten Green Bottles", 5000, 1);
            SetPlayerInterior(playerid, 11);
            PlayerActionMessage(playerid, 15.0, "apre la porta ed entra");
            SetTimerEx("TogglePlayerVisual", 100, false, "dd", playerid);
            SetPlayerPos(playerid, 502.0531, -70.2137, 998.7578);
            PlayerInfo[playerid][pInt] = 11;
        }
        else if(PlayerToPointStripped(1.0, playerid, 501.8707, -67.5821, 998.7578, cx, cy, cz))
        {
            PlayerActionMessage(playerid, 15.0, "apre la porta ed entra");
            SetTimerEx("TogglePlayerVisual", 100, false, "dd", playerid);
            SetPlayerInterior(playerid, 0);
            SetPlayerPos(playerid, 2307.0026, -1645.2214, 14.6881);
            OnPlayerExitFood(playerid);
            PlayerInfo[playerid][pInt] = 0;
        }
        else if(PlayerToPointStripped(1.0, playerid, -1882.2592, 866.5037, 35.1719, cx, cy, cz))
        {
            GameTextForPlayer(playerid, "~w~ZIP", 5000, 1);
            SendClientMessage(playerid, 0xFFFFFFAA, " {00f5ff}Suggerimento:{ffffff} Digita /vestiti per cambiarti d'abito");
            SetPlayerInterior(playerid, 15);
            PlayerActionMessage(playerid, 15.0, "apre la porta ed entra");
            SetTimerEx("TogglePlayerVisual", 100, false, "dd", playerid);
            SetPlayerPos(playerid, 207.7335, -108.6232, 1005.1328);
            PlayerInfo[playerid][pInt] = 15;
        }
        else if(PlayerToPointStripped(1.0, playerid, 207.7662, -111.2663, 1005.1328, cx, cy, cz))
        {
            PlayerActionMessage(playerid, 15.0, "apre la porta ed entra");
            SetTimerEx("TogglePlayerVisual", 100, false, "dd", playerid);
            SetPlayerInterior(playerid, 0);
            SetPlayerPos(playerid, -1883.7371, 864.4066, 35.1719);
            OnPlayerExitFood(playerid);
            PlayerInfo[playerid][pInt] = 0;
        }
        else if(PlayerToPointStripped(1.0, playerid, -2270.4036, -155.9851, 35.3203, cx, cy, cz))
        {
            GameTextForPlayer(playerid, "~w~Palestra", 5000, 1);
            SetPlayerInterior(playerid, 5);
            PlayerActionMessage(playerid, 15.0, "apre la porta ed entra");
            SetTimerEx("TogglePlayerVisual", 100, false, "dd", playerid);
            SetPlayerPos(playerid, 771.9398, -2.2575, 1000.7291);
            SetPlayerFacingAngle(playerid, 264.729);
            PlayerInfo[playerid][pInt] = 5;
        }
        else if(PlayerToPointStripped(1.0, playerid, 772.3593, -5.5157, 1000.7285, cx, cy, cz))
        {
            PlayerActionMessage(playerid, 15.0, "apre la porta ed entra");
            SetTimerEx("TogglePlayerVisual", 100, false, "dd", playerid);
            SetPlayerInterior(playerid, 0);
            SetPlayerPos(playerid, -2268.5918, -156.2645, 35.3203);
            OnPlayerExitFood(playerid);
            PlayerInfo[playerid][pInt] = 0;
        }
        else if(PlayerToPointStripped(1.0, playerid, 2421.4997, -1219.2438, 25.5617, cx, cy, cz))
        {
            GameTextForPlayer(playerid, "~w~The Pig Pen", 5000, 1);
            SetPlayerInterior(playerid, 2);
            PlayerActionMessage(playerid, 15.0, "apre la porta ed entra");
            SetTimerEx("TogglePlayerVisual", 100, false, "dd", playerid);
            SetPlayerPos(playerid, 1205.0803, -9.9519, 1000.9218);
            PlayerInfo[playerid][pInt] = 2;
        }
        else if(PlayerToPointStripped(1.0, playerid, 1204.8461, -13.8522, 1000.9218, cx, cy, cz))
        {
            PlayerActionMessage(playerid, 15.0, "apre la porta ed entra");
            SetTimerEx("TogglePlayerVisual", 100, false, "dd", playerid);
            SetPlayerInterior(playerid, 0);
            SetPlayerPos(playerid, 2419.5559, -1226.5612, 24.9379);
            OnPlayerExitFood(playerid);
            PlayerInfo[playerid][pInt] = 0;
        }
        else if(PlayerToPointStripped(1.0, playerid, -1816.5813, 618.6693, 35.1719, cx, cy, cz))
        {
            OnPlayerEnterFood(playerid, 1);
        }
        else
        {
            if(PlayerToPointStripped(1.0, playerid, 364.0593, -11.7518, 1001.8516, cx, cy, cz))
            {
                if(!GetPlayerVirtualWorld(playerid))
                {
                    PlayerActionMessage(playerid, 15.0, "apre la porta ed entra");
                    SetTimerEx("TogglePlayerVisual", 100, false, "dd", playerid);
                    SetPlayerInterior(playerid, 0);
                    SetPlayerPos(playerid, -1816.8169, 616.6113, 35.1719);
                    PlayerInfo[playerid][pInt] = 0;
                }
                else if(GetPlayerVirtualWorld(playerid) == 2)
                {
                    PlayerActionMessage(playerid, 15.0,"apre la porta ed entra");
                    SetTimerEx("TogglePlayerVisual", 100, false, "dd", playerid);
                    SetPlayerInterior(playerid, 0);
                    SetPlayerPos(playerid, 2398.5507, -1894.6325, 13.3828);
                    SetPlayerVirtualWorld(playerid, 0);
                    PlayerInfo[playerid][pVirWorld] = 0;
                    PlayerInfo[playerid][pInt] = 0;
                }
                else if(GetPlayerVirtualWorld(playerid) == 1)
                {
                    SetPlayerVirtualWorld(playerid, 0);
                    PlayerInfo[playerid][pVirWorld] = 0;
                    PlayerActionMessage(playerid, 15.0, "apre la porta ed entra");
                    SetTimerEx("TogglePlayerVisual", 100, false, "dd", playerid);
                    SetPlayerInterior(playerid, 0);
                    SetPlayerPos(playerid, 923.8997, -1352.9694, 13.3767);
                    PlayerInfo[playerid][pInt] = 0;
                }
                OnPlayerExitFood(playerid);
                return 1;
            }
            if(PlayerToPointStripped(1.0, playerid, 2398.624, -1899.2015, 13.5468, cx, cy, cz))
            {
                SetPlayerVirtualWorld(playerid, 2);
                PlayerInfo[playerid][pVirWorld] = 2;
                PlayerActionMessage(playerid, 15.0, "apre la porta ed entra");
                SetTimerEx("TogglePlayerVisual", 100, false, "dd", playerid);
                OnPlayerEnterFood(playerid, 1);
            }
            else if(PlayerToPointStripped(1.0, playerid, 810.4849, -1616.2452, 13.5468, cx, cy, cz))
            {
                OnPlayerEnterFood(playerid, 2);
            }
            else
            {
                if(PlayerToPointStripped(1.0, playerid, 362.8835, -75.1788, 1001.5078, cx, cy, cz))
                {
                    if(!GetPlayerVirtualWorld(playerid))
                    {
                        PlayerActionMessage(playerid, 15.0, "apre la porta ed entra");
                        SetTimerEx("TogglePlayerVisual", 100, false, "dd", playerid);
                        SetPlayerInterior(playerid, 0);
                        SetPlayerPos(playerid, 815.5034, -1616.7701, 13.752);
                        PlayerInfo[playerid][pInt] = 0;
                    }
                    else if(GetPlayerVirtualWorld(playerid) == 1)
                    {
                        SetPlayerVirtualWorld(playerid, 0);
                        PlayerInfo[playerid][pVirWorld] = 0;
                        PlayerActionMessage(playerid, 15.0, "apre la porta ed entra");
                        SetTimerEx("TogglePlayerVisual", 100, false, "dd", playerid);
                        SetPlayerInterior(playerid, 0);
                        SetPlayerPos(playerid, 1200.868, -921.9526, 43.0103);
                        PlayerInfo[playerid][pInt] = 0;
                    }
                    OnPlayerExitFood(playerid);
                    return 1;
                }
                if(PlayerToPointStripped(1.0, playerid, 928.911, -1352.9959, 13.3437, cx, cy, cz))
                {
                    SetPlayerVirtualWorld(playerid, 1);
                    PlayerInfo[playerid][pVirWorld] = 1;
                    OnPlayerEnterFood(playerid, 1);
                    PlayerActionMessage(playerid, 15.0, "apre la porta ed entra");
                    SetTimerEx("TogglePlayerVisual", 100, false, "dd", playerid);
                }
                else if(PlayerToPointStripped(1.0, playerid, 1199.2476, -918.1448, 43.1232, cx, cy, cz))
                {
                    SetPlayerVirtualWorld(playerid, 1);

                    OnPlayerEnterFood(playerid, 2);
                }
                else if(PlayerToPointStripped(1.0, playerid, -2542.8182, 2340.7951, 4.9843, cx, cy, cz))
                {
                    GameTextForPlayer(playerid, "~w~24/7", 5000, 1);
                    SetPlayerInterior(playerid, 4);
                    PlayerActionMessage(playerid, 15.0, "apre la porta ed entra");
                    SetTimerEx("TogglePlayerVisual", 100, false, "dd", playerid);
                    SetPlayerPos(playerid, -28.2619, -26.2015, 1003.5573);
                    PlayerInfo[playerid][pInt] = 4;
                }
                else if(PlayerToPointStripped(1.0, playerid, -28.0241, -31.7675, 1003.5573, cx, cy, cz))
                {
                    PlayerActionMessage(playerid, 15.0, "apre la porta ed entra");
                    SetTimerEx("TogglePlayerVisual", 100, false, "dd", playerid);
                    SetPlayerInterior(playerid, 0);
                    SetPlayerPos(playerid, -2543.0286, 2338.643, 4.9814);
                    OnPlayerExitFood(playerid);
                    PlayerInfo[playerid][pInt] = 0;
                }
                else if(PlayerToPointStripped(1.0, playerid, 227.5614, -7.3146, 1002.2108, cx, cy, cz))
                {
                    SetPlayerVirtualWorld(playerid, 0);
                    PlayerInfo[playerid][pVirWorld] = 0;
                    PlayerActionMessage(playerid, 15.0, "apre la porta ed entra");
                    SetTimerEx("TogglePlayerVisual", 100, false, "dd", playerid);
                    SetPlayerInterior(playerid, 0);
                    SetPlayerPos(playerid, 454.5949, -1500.6449, 30.882);
                    OnPlayerExitFood(playerid);
                    PlayerInfo[playerid][pInt] = 0;
                }
                else if(PlayerToPointStripped(1.0, playerid, -1721.5206, 1359.8138, 7.1852, cx, cy, cz))
                {
                    OnPlayerEnterFood(playerid, 3);
                }
                else if(PlayerToPointStripped(1.0, playerid, 203.514, -202.2578, 1.578, cx, cy, cz))
                {
                    SetPlayerVirtualWorld(playerid, 2);
                    PlayerInfo[playerid][pVirWorld] = 2;
                    OnPlayerEnterFood(playerid, 3);
                }
                else if(PlayerToPointStripped(1.0, playerid, 372.3847, -133.5248, 1001.4921, cx, cy, cz))
                {
                    if(GetPlayerVirtualWorld(playerid) == 2)
                    {
                        PlayerActionMessage(playerid, 15.0, "apre la porta ed entra");
                        SetTimerEx("TogglePlayerVisual", 100, false, "dd", playerid);
                        SetPlayerInterior(playerid, 0);
                        SetPlayerPos(playerid, 203.2209, -204.6614, 1.578);
                        OnPlayerExitFood(playerid);
                        PlayerInfo[playerid][pInt] = 0;
                        SetPlayerVirtualWorld(playerid, 0);
                        PlayerInfo[playerid][pVirWorld] = 0;
                    }
                    else
                    {
                        PlayerActionMessage(playerid, 15.0, "apre la porta ed entra");
                        SetTimerEx("TogglePlayerVisual", 100, false, "dd", playerid);
                        SetPlayerInterior(playerid, 0);
                        SetPlayerPos(playerid, -1724.4434, 1360.1005, 7.1875);
                        OnPlayerExitFood(playerid);
                        PlayerInfo[playerid][pInt] = 0;
                    }
                }
                else if(PlayerToPointStripped(1.0, playerid, 2105.4858, -1806.4726, 13.5546, cx, cy, cz))
                {
                    OnPlayerEnterFood(playerid, 3);
                }
                else if(PlayerToPointStripped(2.0, playerid, -2441.9749, 754.0134, 35.1786, cx, cy, cz))
                {
                    SetPlayerPos(playerid, -25.1327, -139.0671, 1003.5468);
                    GameTextForPlayer(playerid, "~w~Benvenuto al ~r~24-7", 5000, 3);
                    SetPlayerInterior(playerid, 16);
                    PlayerActionMessage(playerid, 15.0,"apre la porta ed entra");
                    SetTimerEx("TogglePlayerVisual", 100, false, "dd", playerid);
                    PlayerInfo[playerid][pInt] = 16;
                }
                else if(PlayerToPointStripped(2.0, playerid, -25.1327, -141.0671, 1003.5468, cx, cy, cz))
                {
                    SetPlayerPos(playerid, -2441.9749, 752.0134, 35.1786);
                    GameTextForPlayer(playerid, "~rSan Fierro", 5000, 3);
                    SetPlayerInterior(playerid, 0);
                    PlayerActionMessage(playerid, 15.0, "apre la porta ed entra");
                    SetTimerEx("TogglePlayerVisual", 100, false, "dd", playerid);
                    PlayerInfo[playerid][pInt] = 0;
                }
                else if(PlayerToPointStripped(1.0, playerid, -2717.8055, -317.5803, 7.8438, cx, cy, cz))
                {
                    SetPlayerPos(playerid, 1298.697, -794.4941, 1084.0078);
                    GameTextForPlayer(playerid, "~w~Famiglia Corleone HQ", 5000, 1);
                    SetPlayerInterior(playerid, 5);
                    PlayerInfo[playerid][pInt] = 5;
                    PlayerActionMessage(playerid, 15.0, "apre la porta ed entra");
                    SetTimerEx("TogglePlayerVisual", 100, false, "dd", playerid);
                }
                else if(PlayerToPointStripped(1.0, playerid, 1298.8112, -796.6042, 1084.0078, cx, cy, cz))
                {
                    SetPlayerPos(playerid, -2719.4559, -315.5849, 7.8438);
                    PlayerActionMessage(playerid, 15.0,"apre la porta ed entra");
                    SetTimerEx("TogglePlayerVisual", 100, false, "dd", playerid);
                    SetPlayerInterior(playerid, 0);
                    PlayerInfo[playerid][pInt] = 0;
                }
                else if(PlayerToPointStripped(1.0, playerid, -2456.1463, 503.902, 30.0781, cx, cy, cz))
                {
                    SetPlayerPos(playerid, 288.7286, 168.5377, 1007.1718);
                    GameTextForPlayer(playerid, "~w~Centrale F.B.I. HQ", 5000, 1);
                    SetPlayerInterior(playerid, 3);
                    PlayerActionMessage(playerid, 15.0, "apre la porta ed entra");
                    SetTimerEx("TogglePlayerVisual", 100, false, "dd", playerid);
                    SetPlayerFacingAngle(playerid, 0.0);
                    PlayerInfo[playerid][pInt] = 3;
                }
                else if(PlayerToPointStripped(1.0, playerid, 288.7286, 167.0377, 1007.1718, cx, cy, cz))
                {
                    SetPlayerPos(playerid, -2453.3072, 503.8468, 30.0806);
                    PlayerActionMessage(playerid, 15.0, "apre la porta ed entra");
                    SetTimerEx("TogglePlayerVisual", 100, false, "dd", playerid);
                    SetPlayerInterior(playerid, 0);
                    SetPlayerFacingAngle(playerid, 0.0);
                    PlayerInfo[playerid][pInt] = 0;
                }
                else if(PlayerToPointStripped(1.0, playerid, -2655.1277, 640.1608, 14.4545, cx, cy, cz))
                {
                    SetPlayerPos(playerid, 1172.1719, -1332.8327, 1006.4027);
                    TogglePlayerControllable(playerid, false);
                    SetTimerEx("UnfreezeTimer", 2500, false, "i", playerid);
                    GameTextForPlayer(playerid, "~w~Ospedale Di San Fierro", 5000, 1);
                    SetPlayerInterior(playerid, 6);
                    PlayerActionMessage(playerid, 15.0,"apre la porta ed entra");
                    SetTimerEx("TogglePlayerVisual", 100, false, "dd", playerid);
                    SetPlayerFacingAngle(playerid, 0.0);
                    PlayerInfo[playerid][pInt] = 6;
                }
                else if(PlayerToPointStripped(1.0, playerid, 1172.1729, -1333.9273, 1006.4965, cx, cy, cz))
                {
                    SetPlayerPos(playerid, -2655.3204, 637.0031, 14.4531);
                    PlayerActionMessage(playerid, 15.0,"apre la porta ed entra");
                    SetTimerEx("TogglePlayerVisual", 100, false, "dd", playerid);
                    SetPlayerInterior(playerid, 0);
                    SetPlayerFacingAngle(playerid, 270.0);
                    PlayerInfo[playerid][pInt] = 0;
                }
                else if(PlayerToPointStripped(1.0, playerid, -2695.5284, 639.45, 14.4531, cx, cy, cz))
                {
                    SetPlayerPos(playerid, -2731.8272, 640.8602, 66.0938);
                    GameTextForPlayer(playerid, "~w~Tetto Ospedale", 5000, 1);
                    PlayerActionMessage(playerid, 15.0, "apre la porta ed entra");
                    SetTimerEx("TogglePlayerVisual", 100, false, "dd", playerid);
                }
                else if(PlayerToPointStripped(1.0, playerid, -2734.2771, 638.4058, 66.0938, cx, cy, cz))
                {
                    SetPlayerPos(playerid, -2695.4739, 637.5424, 14.4545);
                    PlayerActionMessage(playerid, 15.0,"apre la porta ed entra");
                    SetTimerEx("TogglePlayerVisual", 100, false, "dd", playerid);
                }
                else if(PlayerToPointStripped(1.0, playerid, 1038.0297, -1339.9968, 13.7361, cx, cy, cz))
                {
                    OnPlayerEnterFood(playerid, 4);
                }
                else if(PlayerToPointStripped(1.0, playerid, 377.1723, -193.3046, 1000.6328, cx, cy, cz))
                {
                    SetPlayerPos(playerid, 1038.5147, -1338.0944, 13.7265);
                    GameTextForPlayer(playerid, "~w~ San Fierro", 5000, 1);
                    SetPlayerInterior(playerid, 0);
                    SetPlayerFacingAngle(playerid, 0.0);
                    PlayerInfo[playerid][pInt] = 0;
                    PlayerActionMessage(playerid, 15.0, "apre la porta ed entra");
                    SetTimerEx("TogglePlayerVisual", 100, false, "dd", playerid);
                    OnPlayerExitFood(playerid);
                }
                else if(PlayerToPointStripped(1.0, playerid, 2495.3481, -1691.1355, 14.7656, cx, cy, cz))
                {
                    if(PlayerInfo[playerid][pLeader] == 15 || PlayerInfo[playerid][pMember] == 15)
                    {
                        SetPlayerPos(playerid, 2496.0061, -1693.5202, 1014.7421);
                        GameTextForPlayer(playerid, "~w~Drifter HQ", 5000, 1);
                        SetPlayerInterior(playerid, 3);
                        PlayerActionMessage(playerid, 15.0, "apre la porta ed entra");
                        SetTimerEx("TogglePlayerVisual", 100, false, "dd", playerid);
                        SetPlayerFacingAngle(playerid, 181.0);
                        PlayerInfo[playerid][pInt] = 3;
                    }

                }
                else if(PlayerToPointStripped(1.0, playerid, 2496.0039, -1692.2005, 1014.7421, cx, cy, cz))
                {
                    SetPlayerPos(playerid, 2495.3718, -1688.8561, 14.0672);
                    GameTextForPlayer(playerid, "~w~Biker HQ", 5000, 1);
                    SetPlayerInterior(playerid, 0);
                    PlayerActionMessage(playerid, 15.0, "apre la porta ed entra");
                    SetTimerEx("TogglePlayerVisual", 100, false, "dd", playerid);
                    SetPlayerFacingAngle(playerid, 1.0);
                    PlayerInfo[playerid][pInt] = 0;
                }
                else if(PlayerToPointStripped(1.0, playerid, -2717.8597, 201.3099, -64.3418, cx, cy, cz))
                {
                    if(PlayerInfo[playerid][pLeader] == 16 || PlayerInfo[playerid][pMember] == 16)
                    {
                        SetPlayerPos(playerid, 446.9657, 1399.1479, 1084.3046);
                        GameTextForPlayer(playerid, "~w~Drifter HQ", 5000, 1);
                        SetPlayerInterior(playerid, 2);
                        PlayerActionMessage(playerid, 15.0, "apre la porta ed entra");
                        SetTimerEx("TogglePlayerVisual", 100, false, "dd", playerid);
                        SetPlayerFacingAngle(playerid, 1.0);
                        PlayerInfo[playerid][pInt] = 2;
                    }

                }
                else if(PlayerToPointStripped(1.0, playerid, 447.0208, 1397.4796, 1084.3046, cx, cy, cz))
                {
                    SetPlayerPos(playerid, -2716.0525, 201.3787, 4.3358);
                    SetPlayerFacingAngle(playerid, 268.1546);
                    PlayerActionMessage(playerid, 15.0, "apre la porta ed entra");
                    SetTimerEx("TogglePlayerVisual", 100, false, "dd", playerid);
                    SetPlayerInterior(playerid, 0);
                    SetPlayerFacingAngle(playerid, 179.0);
                    PlayerInfo[playerid][pInt] = 0;
                }
                else if(PlayerToPointStripped(1.0, playerid, -2192.7327, 647.4229, 49.4375, cx, cy, cz))
                {
                    if(PlayerInfo[playerid][pLeader] == 5 || PlayerInfo[playerid][pMember] == 5)
                    {
                        SetPlayerPos(playerid, 2350.55, -1180.6197, 1027.9765);
                        GameTextForPlayer(playerid, "~w~Rifas HQ", 5000, 1);
                        SetPlayerInterior(playerid, 5);
                        PlayerActionMessage(playerid, 15.0, "apre la porta ed entra");
                        SetTimerEx("TogglePlayerVisual", 100, false, "dd", playerid);
                        SetPlayerFacingAngle(playerid, 90.0);
                        PlayerInfo[playerid][pInt] = 5;
                    }
                }
                else if(PlayerToPointStripped(1.0, playerid, 2352.9187, -1180.9679, 1027.9765, cx, cy, cz))
                {
                    SetPlayerPos(playerid, -2192.3248, 644.6331, 49.4375);
                    PlayerActionMessage(playerid, 15.0, "apre la porta ed entra");
                    SetTimerEx("TogglePlayerVisual", 100, false, "dd", playerid);
                    SetPlayerInterior(playerid, 0);
                    SetPlayerFacingAngle(playerid, 179.0);
                    PlayerInfo[playerid][pInt] = 0;
                }
                else if(PlayerToPointStripped(1.0, playerid, -1703.9644, 785.7302, 25.7362, cx, cy, cz))
                {
                    SetPlayerPos(playerid, 386.2977, 173.8582, 1008.3828);
                    GameTextForPlayer(playerid, "~w~Comune", 5000, 1);
                    SetPlayerInterior(playerid, 3);
                    PlayerActionMessage(playerid, 15.0, "apre la porta ed entra");
                    SetTimerEx("TogglePlayerVisual", 100, false, "dd", playerid);
                    SetPlayerFacingAngle(playerid, 0.0);
                    PlayerInfo[playerid][pInt] = 3;
                }
                else if(PlayerToPointStripped(1.0, playerid, 390.0629, 173.574, 1008.3828, cx, cy, cz))
                {
                    SetPlayerPos(playerid, -1706.2736, 785.674, 24.8906);
                    PlayerActionMessage(playerid, 15.0, "apre la porta ed entra");
                    SetTimerEx("TogglePlayerVisual", 100, false, "dd", playerid);
                    SetPlayerInterior(playerid, 0);
                    SetPlayerFacingAngle(playerid, 0.0);
                    PlayerInfo[playerid][pInt] = 0;
                }
                else if(PlayerToPointStripped(1.0, playerid, -1814.9721, 1078.5972, 46.082, cx, cy, cz))
                {
                    SetPlayerPos(playerid, 366.508, 193.1941, 1008.3828);
                    GameTextForPlayer(playerid, "~w~BNN studio", 5000, 1);
                    SetPlayerInterior(playerid, 3);
                    PlayerActionMessage(playerid, 15.0, "apre la porta ed entra");
                    SetTimerEx("TogglePlayerVisual", 100, false, "dd", playerid);
                    SetPlayerFacingAngle(playerid, 0.0);
                    PlayerInfo[playerid][pInt] = 3;
                }
                else if(PlayerToPointStripped(1.0, playerid, 366.3891, 190.9859, 1008.3828, cx, cy, cz))
                {
                    SetPlayerPos(playerid, -1812.6072, 1078.4371, 46.0821);
                    PlayerActionMessage(playerid, 15.0, "apre la porta ed entra");
                    SetTimerEx("TogglePlayerVisual", 100, false, "dd", playerid);
                    SetPlayerInterior(playerid, 0);
                    SetPlayerFacingAngle(playerid, 0.0);
                    PlayerInfo[playerid][pInt] = 0;
                }
                else if(PlayerToPointStripped(1.0, playerid, -2026.4976, -102.0636, 35.1641, cx, cy, cz))
                {
                    SetPlayerPos(playerid, 371.8501, 182.0368, 1014.1875);
                    GameTextForPlayer(playerid, "~w~Stazione Taxi", 5000, 1);
                    SetPlayerInterior(playerid, 3);
                    PlayerActionMessage(playerid, 15.0, "apre la porta ed entra");
                    SetTimerEx("TogglePlayerVisual", 100, false, "dd", playerid);
                    SetPlayerFacingAngle(playerid, 0.0);
                    PlayerInfo[playerid][pInt] = 3;
                }
                else if(PlayerToPointStripped(1.0, playerid, 371.4523, 180.2194, 1014.1875, cx, cy, cz))
                {
                    SetPlayerPos(playerid, -2026.4825, -99.7266, 35.1641);
                    PlayerActionMessage(playerid, 15.0, "apre la porta ed entra");
                    SetTimerEx("TogglePlayerVisual", 100, false, "dd", playerid);
                    SetPlayerInterior(playerid, 0);
                    SetPlayerFacingAngle(playerid, 0.0);
                    PlayerInfo[playerid][pInt] = 0;
                }
                else if(PlayerToPointStripped(1.0, playerid, -2664.8848, -7.4009, 6.1328, cx, cy, cz))
                {
                    SetPlayerPos(playerid, 1494.6207, 1305.2336, 1093.289);
                    GameTextForPlayer(playerid, "~w~Scuola Guida", 5000, 1);
                    PlayerActionMessage(playerid, 15.0, "apre la porta ed entra");
                    SetTimerEx("TogglePlayerVisual", 100, false, "dd", playerid);
                    SetPlayerInterior(playerid, 3);
                    SetPlayerFacingAngle(playerid, 0.0);
                    PlayerInfo[playerid][pInt] = 3;
                }
                else if(PlayerToPointStripped(1.0, playerid, 1494.2778, 1303.7287, 1093.289, cx, cy, cz))
                {
                    SetPlayerPos(playerid, -2668.1536, -7.4426, 6.1328);
                    PlayerActionMessage(playerid, 15.0, "apre la porta ed entra");
                    SetTimerEx("TogglePlayerVisual", 100, false, "dd", playerid);
                    SetPlayerInterior(playerid, 0);
                    SetPlayerFacingAngle(playerid, 280.0);
                    PlayerInfo[playerid][pInt] = 0;
                }
                else if(PlayerToPointStripped(1.0, playerid, -1594.2088, 716.0905, -4.9064, cx, cy, cz))
                {
                    SetPlayerPos(playerid, 244.0099, 66.4151, 1003.6406);
                    GameTextForPlayer(playerid, "~w~Centrale di Polizia", 5000, 1);
                    PlayerActionMessage(playerid, 15.0, "apre la porta ed entra");
                    SetTimerEx("TogglePlayerVisual", 100, false, "dd", playerid);
                    SetPlayerInterior(playerid, 6);
                    SetPlayerFacingAngle(playerid, 270.0);
                    PlayerInfo[playerid][pInt] = 6;
                }
                else if(PlayerToPointStripped(1.0, playerid, 1557.7257, -1675.2712, 28.3955, cx, cy, cz))
                {
                    SetPlayerPos(playerid, 244.0099, 66.4151, 1003.6406);
                    GameTextForPlayer(playerid, "~w~Centrale di Polizia", 5000, 1);
                    PlayerActionMessage(playerid, 15.0, "apre la porta ed entra");
                    SetTimerEx("TogglePlayerVisual", 100, false, "dd", playerid);
                    SetPlayerInterior(playerid, 6);
                    SetPlayerFacingAngle(playerid, 270.0);
                    PlayerInfo[playerid][pInt] = 6;
                }
                else if(PlayerToPointStripped(1.5, playerid, -1833.2277, 1082.9488, 46.078, cx, cy, cz))
                {
                    SetPlayerPos(playerid, -1820.1338, 1080.9272, 145.1327);
                    GameTextForPlayer(playerid, "~w~Tetto BNN Studio", 5000, 1);
                    PlayerActionMessage(playerid, 15.0, "apre la porta ed entra");
                    SetTimerEx("TogglePlayerVisual", 100, false, "dd", playerid);
                    SetPlayerInterior(playerid, 0);
                    PlayerInfo[playerid][pInt] = 0;
                }
                else if(PlayerToPointStripped(1.5, playerid, -1814.6257, 1083.4577, 145.1327, cx, cy, cz))
                {
                    SetPlayerPos(playerid, -1833.0611, 1084.9753, 46.078);
                    PlayerActionMessage(playerid, 15.0, "apre la porta ed entra");
                    SetTimerEx("TogglePlayerVisual", 100, false, "dd", playerid);
                    SetPlayerInterior(playerid, 0);
                    PlayerInfo[playerid][pInt] = 0;
                    return 1;
                }
            }
        }
    }
Reply


Messages In This Thread
Server Crash on KEY_SECONDARY_ATTACK? - by alanhutch - 05.07.2013, 13:48
Re: Server Crash on KEY_SECONDARY_ATTACK? - by Sasino97 - 05.07.2013, 14:00
Re: Server Crash on KEY_SECONDARY_ATTACK? - by Konstantinos - 05.07.2013, 14:04
Re: Server Crash on KEY_SECONDARY_ATTACK? - by alanhutch - 05.07.2013, 14:12
Re: Server Crash on KEY_SECONDARY_ATTACK? - by SuperViper - 05.07.2013, 15:38

Forum Jump:


Users browsing this thread: 1 Guest(s)