[HELP]Interior problem
#1

When i set some motels interior to the same interior and when i enter it,it won't let me /exit for some reason i don't know whats wrong.It only happens when the same motel interior is assigned to some of the motels.heres the command to change interior for motels
pawn Код:
if(strcmp(cmd, "/achangemint", true) == 0)
{
    new family = PlayerInfo[playerid][pComplexkey];
    if(IsPlayerConnected(playerid)) {
        tmp = strtok(cmdtext, idx);
        if(!strlen(tmp)) {
            SendClientMessage(playerid, COLOR_GRAD3, "USAGE: /changemint [motelid] [id (1-50)] /propid(in your  motel entrance to see motelid) ");
            return 1;
        }


        new id;
        id = strval(tmp);
        if(id > sizeof(MotelInfo)) return    SendClientMessage(playerid,COLOR_GRAD3,"  Wrong house id");
        tmp = strtok(cmdtext, idx);
        if(!strlen(tmp)) {
            SendClientMessage(playerid, COLOR_GRAD3, "[USAGE:] /changemint [motelid] [id (1-50)]");
            return 1;
        }
        new id2;
        id2 = strval(tmp);
        if(id2 < 1 || id2 > 50) { SendClientMessage(playerid, COLOR_WHITE, "[ERROR:] Interior ID's 1-50."); return 1; }
        if(id2 == 1) {
            MotelInfo[id][mExitx] = 235.3054;
            MotelInfo[id][mExity] = 1186.6835;
            MotelInfo[id][mExitz] = 1080.2578;
            MotelInfo[id][mInt] = 3;
            SetPlayerVirtualWorld(playerid,MotelInfo[id][mWorld]);
         // GivePlayerPCash(playerid,-250000);
            format(string, sizeof string, "House ID: %d - Description: Large/2 story/3 bedrooms/clone of House 9.", id,id2);
            SendClientMessage(playerid, COLOR_WHITE,string);
        }
        else if(id2 == 2) {
            MotelInfo[id][mExitx] = 225.756989;
            MotelInfo[id][mExity] = 1240.000000;
            MotelInfo[id][mExitz] = 1082.149902;
            MotelInfo[id][mInt] = 2;
           // GivePlayerPCash(playerid,-250000);
             SetPlayerVirtualWorld(playerid,MotelInfo[id][mWorld]);
            format(string, sizeof string, "House ID: %d - Description: Medium/1 story/1 bedroom.", id);
            SendClientMessage(playerid, COLOR_WHITE,string);
        }
        else if(id2 == 3) {
            MotelInfo[id][mExitx] = 223.1929;
            MotelInfo[id][mExity] = 1287.0780;
            MotelInfo[id][mExitz] = 1082.1406;
            MotelInfo[id][mInt] = 1;
           // GivePlayerPCash(playerid,-250000);
             SetPlayerVirtualWorld(playerid,MotelInfo[id][mWorld]);
            format(string, sizeof string, "House ID: %d - Description: Small/1 story/1 bedroom.", id);
            SendClientMessage(playerid, COLOR_WHITE,string);
        }
        else if(id2 == 4) {
            MotelInfo[id][mExitx] = 225.630997; MotelInfo[id][mExity] = 1022.479980; MotelInfo[id][mExitz] = 1084.069946;
            MotelInfo[id][mInt] = 7;
           // GivePlayerPCash(playerid,-250000);
             SetPlayerVirtualWorld(playerid,MotelInfo[id][mWorld]);
            format(string, sizeof string, "House ID: %d - Description: VERY Large/2 story/4 bedrooms.", id);
            SendClientMessage(playerid, COLOR_WHITE,string);
        }
        else if(id2 == 5) {
            MotelInfo[id][mExitx] = 295.138977; MotelInfo[id][mExity] = 1474.469971; MotelInfo[id][mExitz] = 1080.519897;
            MotelInfo[id][mInt] = 15;
          //  GivePlayerPCash(playerid,-250000);
             SetPlayerVirtualWorld(playerid,MotelInfo[id][mWorld]);
            format(string, sizeof string, "House ID: %d - Description: Small/1 story/2 bedrooms.", id);
            SendClientMessage(playerid, COLOR_WHITE,string);
        }
        else if(id2 == 6) {
            MotelInfo[id][mExitx] = 328.1066; MotelInfo[id][mExity] = 1478.0106; MotelInfo[id][mExitz] = 1084.4375;
            MotelInfo[id][mInt] = 15;
           // GivePlayerPCash(playerid,-250000);
             SetPlayerVirtualWorld(playerid,MotelInfo[id][mWorld]);
            format(string, sizeof string, "House ID: %d - Description: Small/1 story/2 bedrooms.", id);
            SendClientMessage(playerid, COLOR_WHITE,string);
        }
        else if(id2 == 7) {
            MotelInfo[id][mExitx] = 385.803986; MotelInfo[id][mExity] = 1471.769897; MotelInfo[id][mExitz] = 1080.209961;
            MotelInfo[id][mInt] = 15;
            GivePlayerPCash(playerid,-250000);
             SetPlayerVirtualWorld(playerid,MotelInfo[id][mWorld]);
            format(string, sizeof string, "House ID: %d - Description: Small/1 story/1 bedroom/NO BATHROOM.", id);
            SendClientMessage(playerid, COLOR_WHITE,string);
        }
        else if(id2 == 8) {
            MotelInfo[id][mExitx] = 375.971985; MotelInfo[id][mExity] = 1417.269897; MotelInfo[id][mExitz] = 1081.409912;
            MotelInfo[id][mInt] = 15;
            GivePlayerPCash(playerid,-250000);
             SetPlayerVirtualWorld(playerid,MotelInfo[id][mWorld]);
            format(string, sizeof string, "House ID: %d - Description: Small/1 story/1 bedroom.", id);
            SendClientMessage(playerid, COLOR_WHITE,string);
        }
        else if(id2 == 9) {
            MotelInfo[id][mExitx] = 490.810974; MotelInfo[id][mExity] = 1401.489990; MotelInfo[id][mExitz] = 1080.339966;
            MotelInfo[id][mInt] = 2;
            GivePlayerPCash(playerid,-250000);
             SetPlayerVirtualWorld(playerid,MotelInfo[id][mWorld]);
            format(string, sizeof string, "House ID: %d - Description: Large/2 story/3 bedrooms.", id);
            SendClientMessage(playerid, COLOR_WHITE,string);
        }
        else if(id2 == 10) {
            MotelInfo[id][mExitx] = 446.8264; MotelInfo[id][mExity] = 1397.3435; MotelInfo[id][mExitz] = 1084.3047;
            MotelInfo[id][mInt] = 2;
            GivePlayerPCash(playerid,-250000);
             SetPlayerVirtualWorld(playerid,MotelInfo[id][mWorld]);
            format(string, sizeof string, "House ID: %d - Description: Medium/1 story/2 bedrooms.", id);
            SendClientMessage(playerid, COLOR_WHITE,string);
        }
        else if(id2 == 11) {
            MotelInfo[id][mExitx] = 227.722992; MotelInfo[id][mExity] = 1114.389893; MotelInfo[id][mExitz] = 1081.189941;
            MotelInfo[id][mInt] = 5;
            GivePlayerPCash(playerid,-250000);
             SetPlayerVirtualWorld(playerid,MotelInfo[id][mWorld]);
            format(string, sizeof string, "House ID: %d - Description: Large/2 story/4 bedrooms.", id);
            SendClientMessage(playerid, COLOR_WHITE,string);
        }
        else if(id2 == 12) {
            MotelInfo[id][mExitx] = 260.983978; MotelInfo[id][mExity] = 1286.549927; MotelInfo[id][mExitz] = 1080.299927;
            MotelInfo[id][mInt] = 4;
            GivePlayerPCash(playerid,-250000);
             SetPlayerVirtualWorld(playerid,MotelInfo[id][mWorld]);
            format(string, sizeof string, "House ID: %d - Description: Small/1 story/1 bedroom.", id);
            SendClientMessage(playerid, COLOR_WHITE,string);
        }
        else if(id2 == 13) {
            MotelInfo[id][mExitx] = 221.7330; MotelInfo[id][mExity] = 1140.5146; MotelInfo[id][mExitz] = 1082.6094;
            MotelInfo[id][mInt] = 4;
            GivePlayerPCash(playerid,-250000);
             SetPlayerVirtualWorld(playerid,MotelInfo[id][mWorld]);
            format(string, sizeof string, "House ID: %d - Description: Small/1 story/1 bedroom/NO BATHROOM!", id);
            SendClientMessage(playerid, COLOR_WHITE,string);
        }
        else if(id2 == 14) {
            MotelInfo[id][mExitx] = 27.132700; MotelInfo[id][mExity] = 1341.149902; MotelInfo[id][mExitz] = 1084.449951;
            MotelInfo[id][mInt] = 10;
            GivePlayerPCash(playerid,-250000);
             SetPlayerVirtualWorld(playerid,MotelInfo[id][mWorld]);
            format(string, sizeof string, "House ID: %d - Description: Medium/2 story/1 bedroom.", id);
            SendClientMessage(playerid, COLOR_WHITE,string);
        }
        else if(id2 == 15) {
            MotelInfo[id][mExitx] = -262.601990; MotelInfo[id][mExity] = 1456.619995; MotelInfo[id][mExitz] = 1084.449951;
            MotelInfo[id][mInt] = 4;
            GivePlayerPCash(playerid,-250000);
             SetPlayerVirtualWorld(playerid,MotelInfo[id][mWorld]);
            format(string, sizeof string, "House ID: %d - Description: Large/2 story/1 bedroom/NO BATHROOM!", id);
            SendClientMessage(playerid, COLOR_WHITE,string);
        }
        else if(id2 == 16) {
            MotelInfo[id][mExitx] = 22.778299; MotelInfo[id][mExity] = 1404.959961; MotelInfo[id][mExitz] = 1084.449951;
            MotelInfo[id][mInt] = 5;
            GivePlayerPCash(playerid,-250000);
             SetPlayerVirtualWorld(playerid,MotelInfo[id][mWorld]);
            format(string, sizeof string, "House ID: %d - Description: Medium/1 story/2 bedrooms/NO BATHROOM or DOORS!", id);
            SendClientMessage(playerid, COLOR_WHITE,string);
        }
        else if(id2 == 17) {
            MotelInfo[id][mExitx] = 140.2267; MotelInfo[id][mExity] = 1365.9246; MotelInfo[id][mExitz] = 1083.8594;
            MotelInfo[id][mInt] = 5;
            GivePlayerPCash(playerid,-250000);
             SetPlayerVirtualWorld(playerid,MotelInfo[id][mWorld]);
            format(string, sizeof string, "House ID: %d - Description: Large/2 story/4 bedrooms/NO BATHROOM!", id);
            SendClientMessage(playerid, COLOR_WHITE,string);
        }
        else if(id2 == 18) {
            MotelInfo[id][mExitx] = 234.045990; MotelInfo[id][mExity] = 1064.879883; MotelInfo[id][mExitz] = 1084.309937;
            MotelInfo[id][mInt] = 6;
            GivePlayerPCash(playerid,-250000);
             SetPlayerVirtualWorld(playerid,MotelInfo[id][mWorld]);
            format(string, sizeof string, "House ID: %d - Description: Large/2 story/3 bedrooms.", id);
            SendClientMessage(playerid, COLOR_WHITE,string);
        }
        else if(id2 == 19) {
            MotelInfo[id][mExitx] = -68.294098; MotelInfo[id][mExity] = 1353.469971; MotelInfo[id][mExitz] = 1080.279907;
            MotelInfo[id][mInt] = 6;
            GivePlayerPCash(playerid,-250000);
             SetPlayerVirtualWorld(playerid,MotelInfo[id][mWorld]);
            format(string, sizeof string, "House ID: %d - Description: Small/1 story/NO BEDROOM!", id);
            SendClientMessage(playerid, COLOR_WHITE,string);
        }
        else if(id2 == 20) {
            MotelInfo[id][mExitx] = -285.548981; MotelInfo[id][mExity] = 1470.979980; MotelInfo[id][mExitz] = 1084.449951;
            MotelInfo[id][mInt] = 15;
            GivePlayerPCash(playerid,-250000);
             SetPlayerVirtualWorld(playerid,MotelInfo[id][mWorld]);
            format(string, sizeof string, "House ID: %d - Description: 1 bedroom/living room/kitchen/NO BATHROOM", id);
            SendClientMessage(playerid, COLOR_WHITE,string);
        }
        else if(id2 == 21) {
            MotelInfo[id][mExitx] = -42.581997; MotelInfo[id][mExity] = 1408.109985; MotelInfo[id][mExitz] = 1084.449951;
            MotelInfo[id][mInt] = 8;
            GivePlayerPCash(playerid,-250000);
             SetPlayerVirtualWorld(playerid,MotelInfo[id][mWorld]);
            format(string, sizeof string, "House ID: %d - Description: Small/1 story/NO BEDROOM!", id);
            SendClientMessage(playerid, COLOR_WHITE,string);
        }
        else if(id2 == 22) {
            MotelInfo[id][mExitx] = 83.345093; MotelInfo[id][mExity] = 1324.439941; MotelInfo[id][mExitz] = 1083.889893;
            MotelInfo[id][mInt] = 9;
            GivePlayerPCash(playerid,-250000);
             SetPlayerVirtualWorld(playerid,MotelInfo[id][mWorld]);
            format(string, sizeof string, "House ID: %d - Description: Medium/2 story/2 bedrooms", id);
            SendClientMessage(playerid, COLOR_WHITE,string);
        }
        else if(id2 == 23) {
            MotelInfo[id][mExitx] = 260.941986; MotelInfo[id][mExity] = 1238.509888; MotelInfo[id][mExitz] = 1084.259888;
            MotelInfo[id][mInt] = 9;
            GivePlayerPCash(playerid,-250000);
             SetPlayerVirtualWorld(playerid,MotelInfo[id][mWorld]);
            format(string, sizeof string, "House ID: %d - Description: Small/1 story/1 bedroom", id);
            SendClientMessage(playerid, COLOR_WHITE,string);
        }
        else if(id2 == 24) {
            MotelInfo[id][mExitx] = 244.411987; MotelInfo[id][mExity] = 305.032990; MotelInfo[id][mExitz] = 999.231995;
            MotelInfo[id][mInt] = 1;
            GivePlayerPCash(playerid,-250000);
             SetPlayerVirtualWorld(playerid,MotelInfo[id][mWorld]);
            format(string, sizeof string, "House ID: %d - Description: Denise's Bedroom", id);
            SendClientMessage(playerid, COLOR_WHITE,string);
        }
        else if(id2 == 25) {
            MotelInfo[id][mExitx] = 266.4991; MotelInfo[id][mExity] = 304.9922; MotelInfo[id][mExitz] = 999.1484;
            MotelInfo[id][mInt] = 2;
            GivePlayerPCash(playerid,-250000);
             SetPlayerVirtualWorld(playerid,MotelInfo[id][mWorld]);
            format(string, sizeof string, "House ID: %d - Description: Katie's Bedroom", id);
            SendClientMessage(playerid, COLOR_WHITE,string);
        }
        else if(id2 == 26) {
            MotelInfo[id][mExitx] = 291.282990; MotelInfo[id][mExity] = 310.031982; MotelInfo[id][mExitz] = 999.154968;
            MotelInfo[id][mInt] = 3;
            GivePlayerPCash(playerid,-250000);
             SetPlayerVirtualWorld(playerid,MotelInfo[id][mWorld]);
            format(string, sizeof string, "House ID: %d - Description: Helena's Bedroom (barn) - limited movement.", id);
            SendClientMessage(playerid, COLOR_WHITE,string);
        }
        else if(id2 == 27) {
            MotelInfo[id][mExitx] = 302.181000; MotelInfo[id][mExity] = 300.722992; MotelInfo[id][mExitz] = 999.231995;
            MotelInfo[id][mInt] = 4;
            GivePlayerPCash(playerid,-250000);
             SetPlayerVirtualWorld(playerid,MotelInfo[id][mWorld]);
            format(string, sizeof string, "House ID: %d - Description: Michelle's Bedroom.", id);
            SendClientMessage(playerid, COLOR_WHITE,string);
        }
        else if(id2 == 28) {
            MotelInfo[id][mExitx] = 322.197998; MotelInfo[id][mExity] = 302.497986; MotelInfo[id][mExitz] = 999.231995;
            MotelInfo[id][mInt] = 5;
            GivePlayerPCash(playerid,-250000);
             SetPlayerVirtualWorld(playerid,MotelInfo[id][mWorld]);
            format(string, sizeof string, "House ID: %d - Description: Barbara's Bedroom.", id);
            SendClientMessage(playerid, COLOR_WHITE,string);
        }
        else if(id2 == 29) {
            MotelInfo[id][mExitx] = 346.870025; MotelInfo[id][mExity] = 309.259033; MotelInfo[id][mExitz] = 999.155700;
            MotelInfo[id][mInt] = 6;
            GivePlayerPCash(playerid,-250000);
             SetPlayerVirtualWorld(playerid,MotelInfo[id][mWorld]);
            format(string, sizeof string, "House ID: %d - Description: Millie's Bedroom.", id);
            SendClientMessage(playerid, COLOR_WHITE,string);
        }
        else if(id2 == 30) {
            MotelInfo[id][mExitx] = 2495.6416; MotelInfo[id][mExity] = -1692.2361; MotelInfo[id][mExitz] = 1014.7422;
            MotelInfo[id][mInt] = 3;
             SetPlayerVirtualWorld(playerid,MotelInfo[id][mWorld]);
            format(string, sizeof string, "House ID: %d - Description: CJ's Mom's House.", id);
            SendClientMessage(playerid, COLOR_WHITE,string);
        }
        else if(id2 == 31) {
            MotelInfo[id][mExitx] = 1263.079956; MotelInfo[id][mExity] = -785.308960; MotelInfo[id][mExitz] = 1091.959961;
            MotelInfo[id][mInt] = 5;
            GivePlayerPCash(playerid,-250000);
             SetPlayerVirtualWorld(playerid,MotelInfo[id][mWorld]);
            format(string, sizeof string, "House ID: %d - Description: Madd Dogg's Mansion (West door).", id);
            SendClientMessage(playerid, COLOR_WHITE,string);
        }
        else if(id2 == 32) {
            MotelInfo[id][mExitx] = 2468.4502; MotelInfo[id][mExity] = -1698.4801; MotelInfo[id][mExitz] = 1013.5078;
            MotelInfo[id][mInt] = 2;
            GivePlayerPCash(playerid,-250000);
             SetPlayerVirtualWorld(playerid,MotelInfo[id][mWorld]);
            format(string, sizeof string, "House ID: %d - Description: Ryder's house.", id);
            SendClientMessage(playerid, COLOR_WHITE,string);
        }
        else if(id2 == 33) {
            MotelInfo[id][mExitx] = 2526.459961; MotelInfo[id][mExity] = -1679.089966; MotelInfo[id][mExitz] = 1015.500000;
            MotelInfo[id][mInt] = 1;
            GivePlayerPCash(playerid,-250000);
             SetPlayerVirtualWorld(playerid,MotelInfo[id][mWorld]);
            format(string, sizeof string, "House ID: %d - Description: Sweet's House (South side of house is fucked).", id);
            SendClientMessage(playerid, COLOR_WHITE,string);
        }
        else if(id2 == 34) {
            MotelInfo[id][mExitx] = 2543.659912; MotelInfo[id][mExity] = -1303.629883; MotelInfo[id][mExitz] = 1025.069946;
            MotelInfo[id][mInt] = 2;
            GivePlayerPCash(playerid,-250000);
             SetPlayerVirtualWorld(playerid,MotelInfo[id][mWorld]);
            format(string, sizeof string, "House ID: %d - Description: Big Smoke's Crack Factory (Ground Floor).", id);
            SendClientMessage(playerid, COLOR_WHITE,string);
        }
        else if(id2 == 35) {
            MotelInfo[id][mExitx] = 744.542969; MotelInfo[id][mExity] = 1437.669922; MotelInfo[id][mExitz] = 1102.739990;
            MotelInfo[id][mInt] = 6;
            GivePlayerPCash(playerid,-250000);
             SetPlayerVirtualWorld(playerid,MotelInfo[id][mWorld]);
            format(string, sizeof string, "House ID: %d - Description: Fanny Batter's Whore House.", id);
            SendClientMessage(playerid, COLOR_WHITE,string);
        }
        else if(id2 == 36) {
            MotelInfo[id][mExitx] = 964.106995; MotelInfo[id][mExity] = -53.205498; MotelInfo[id][mExitz] = 1001.179993;
            MotelInfo[id][mInt] = 3;
            GivePlayerPCash(playerid,-250000);
             SetPlayerVirtualWorld(playerid,MotelInfo[id][mWorld]);
            format(string, sizeof string, "House ID: %d - Description: Tiger Skin Rug Brothel.", id);
            SendClientMessage(playerid, COLOR_WHITE,string);
        }
        else if(id2 == 37) {
            MotelInfo[id][mExitx] = 2350.339844; MotelInfo[id][mExity] = -1181.649902; MotelInfo[id][mExitz] = 1028.000000;
            MotelInfo[id][mInt] = 5;
            GivePlayerPCash(playerid,-250000);
             SetPlayerVirtualWorld(playerid,MotelInfo[id][mWorld]);
            format(string, sizeof string, "House ID: %d - Description: Burning Desire Gang House.", id);
            SendClientMessage(playerid, COLOR_WHITE,string);
        }
        else if(id2 == 38) {
            MotelInfo[id][mExitx] = 2807.9172; MotelInfo[id][mExity] = -1174.4333; MotelInfo[id][mExitz] = 1025.5703;
            MotelInfo[id][mInt] = 8;
            GivePlayerPCash(playerid,-250000);
             SetPlayerVirtualWorld(playerid,MotelInfo[id][mWorld]);
            format(string, sizeof string, "House ID: %d - Description: Colonel Furhberger's House.", id);
            SendClientMessage(playerid, COLOR_WHITE,string);
        }
        else if(id2 == 39) {
            MotelInfo[id][mExitx] = 318.7010; MotelInfo[id][mExity] = 1114.7716; MotelInfo[id][mExitz] = 1083.8828;
            MotelInfo[id][mInt] = 5;
            GivePlayerPCash(playerid,-250000);
             SetPlayerVirtualWorld(playerid,MotelInfo[id][mWorld]);
            format(string, sizeof string, "House ID: %d - Description: Crack Den.", id);
            SendClientMessage(playerid, COLOR_WHITE,string);
        }
        else if(id2 == 40) {
            MotelInfo[id][mExitx] = 2324.3267; MotelInfo[id][mExity] = -1149.1440; MotelInfo[id][mExitz] = 1050.7101;
            MotelInfo[id][mInt] = 12;
            GivePlayerPCash(playerid,-250000);
             SetPlayerVirtualWorld(playerid,MotelInfo[id][mWorld]);
            format(string, sizeof string, "House ID: %d - Description: Unused Safe House.", id);
            SendClientMessage(playerid, COLOR_WHITE,string);
        }
        else if(id2 == 41) {
            MotelInfo[id][mExitx] = 446.5014; MotelInfo[id][mExity] = 507.0295; MotelInfo[id][mExitz] = 1001.4195;
            MotelInfo[id][mInt] = 12;
            GivePlayerPCash(playerid,-250000);
             SetPlayerVirtualWorld(playerid,MotelInfo[id][mWorld]);
            format(string, sizeof string, "House ID: %d - Description: Budget Inn Motel Room.", id);
            SendClientMessage(playerid, COLOR_WHITE,string);
        }
        else if(id2 == 42) {
            MotelInfo[id][mExitx] = 2216.3398; MotelInfo[id][mExity] = -1150.5099; MotelInfo[id][mExitz] = 1025.7969;
            MotelInfo[id][mInt] = 15;
            GivePlayerPCash(playerid,-250000);
             SetPlayerVirtualWorld(playerid,MotelInfo[id][mWorld]);
            format(string, sizeof string, "House ID: %d - Description: Jefferson Motel. (REALLY EXPENSIVE)", id);
            SendClientMessage(playerid, COLOR_WHITE,string);
            }
            else if(id2 == 43) {
                MotelInfo[id][mExitx] = 2246.0344; MotelInfo[id][mExity] = -1160.2881; MotelInfo[id][mExitz] = 1029.7969;
                MotelInfo[id][mInt] = 15;
                 SetPlayerVirtualWorld(playerid,MotelInfo[id][mWorld]);
                format(string, sizeof string, "House ID: %d - Description: Jefferson Motel. (REALLY EXPENSIVE)", id);
                SendClientMessage(playerid, COLOR_WHITE,string);
            }
             else if(id2 == 44) {
                MotelInfo[id][mExitx] = 2234.9004; MotelInfo[id][mExity] = -1158.4508; MotelInfo[id][mExitz] = 1029.7969;
                MotelInfo[id][mInt] = 15;
                   SetPlayerVirtualWorld(playerid,MotelInfo[id][mWorld]);
                format(string, sizeof string, "House ID: %d - Description: Jefferson Motel. (REALLY EXPENSIVE)", id);
                SendClientMessage(playerid, COLOR_WHITE,string);
            }
             else if(id2 == 45) {
                MotelInfo[id][mExitx] = 2236.6416; MotelInfo[id][mExity] = -1170.5536; MotelInfo[id][mExitz] = 1029.7969;
                MotelInfo[id][mInt] = 15;
                   SetPlayerVirtualWorld(playerid,MotelInfo[id][mWorld]);
                format(string, sizeof string, "House ID: %d - Description: Jefferson Motel. (REALLY EXPENSIVE)", id);
                SendClientMessage(playerid, COLOR_WHITE,string);
            }
             else if(id2 == 46) {
                MotelInfo[id][mExitx] = 2225.7454; MotelInfo[id][mExity] = -1183.2550; MotelInfo[id][mExitz] = 1029.7969;
                MotelInfo[id][mInt] = 15;
                   SetPlayerVirtualWorld(playerid,MotelInfo[id][mWorld]);
                format(string, sizeof string, "House ID: %d - Description: Jefferson Motel. (REALLY EXPENSIVE)", id);
                SendClientMessage(playerid, COLOR_WHITE,string);
            }
             else if(id2 == 47) {
                MotelInfo[id][mExitx] = 2209.5654; MotelInfo[id][mExity] = -1192.8574; MotelInfo[id][mExitz] = 1029.7969;
                MotelInfo[id][mInt] = 15;
                   SetPlayerVirtualWorld(playerid,MotelInfo[id][mWorld]);
                format(string, sizeof string, "House ID: %d - Description: Jefferson Motel. (REALLY EXPENSIVE)", id);
                SendClientMessage(playerid, COLOR_WHITE,string);
            }
             else if(id2 == 48) {
                MotelInfo[id][mExitx] = 2198.2805; MotelInfo[id][mExity] = -1173.1130; MotelInfo[id][mExitz] = 1029.7969;
                MotelInfo[id][mInt] = 15;
                   SetPlayerVirtualWorld(playerid,MotelInfo[id][mWorld]);
                format(string, sizeof string, "House ID: %d - Description: Jefferson Motel. (REALLY EXPENSIVE)", id);
                SendClientMessage(playerid, COLOR_WHITE,string);
            }
            else if(id2 == 49) {
                MotelInfo[id][mExitx] = 2189.5188; MotelInfo[id][mExity] = -1155.9926; MotelInfo[id][mExitz] = 1029.7969;
                MotelInfo[id][mInt] = 15;
                   SetPlayerVirtualWorld(playerid,MotelInfo[id][mWorld]);
                format(string, sizeof string, "House ID: %d - Description: Jefferson Motel. (REALLY EXPENSIVE)", id);
                SendClientMessage(playerid, COLOR_WHITE,string);
            }
            else if(id2 == 50) {
                MotelInfo[id][mExitx] = 2197.3152; MotelInfo[id][mExity] = -1156.7562; MotelInfo[id][mExitz] = 1025.7969;
                MotelInfo[id][mInt] = 15;
                   SetPlayerVirtualWorld(playerid,MotelInfo[id][mWorld]);
                format(string, sizeof string, "House ID: %d - Description: Jefferson Motel. (REALLY EXPENSIVE)", id);
                SendClientMessage(playerid, COLOR_WHITE,string);
            }
            OnPropUpdate();
        }
        else {
            SendClientMessage(playerid, COLOR_GREY, "Your not an administrator.");

    }
    return 1;
}
Heres my command for /exit
pawn Код:
if(IsPlayerConnected(playerid)) {
        for(new i = 0; i <  sizeof(MotelInfo); i++) {
////printf("House :%d",i);
            if (PlayerToPoint(5.0, playerid,MotelInfo[i][mExitx], MotelInfo[i][mExity], MotelInfo[i][mExitz])) {
             if(MotelEntered[playerid] == i) {
               

                   // SetPlayerVirtualWorld(playerid,0);
                    new interior = GetPlayerInterior(playerid);
                    Pause(playerid);
                    DOO_SetPlayerPos(playerid,MotelInfo[i][mEntrancex],MotelInfo[i][mEntrancey],MotelInfo[i][mEntrancez]);
                    PlayerInfo[playerid][pInt] = interior;
                    PlayerInfo[playerid][pLocal] = 255;
                    SetCameraBehindPlayer(playerid);
                    MotelEntered[playerid] = 498;
                    Audio_Stop(playerid,1);
                    Audio_Stop(playerid,2);
                    Audio_Stop(playerid,3);
                    Audio_Stop(playerid,4);
                    Audio_Stop(playerid,5);
                    Audio_Stop(playerid,6);
                    Audio_Stop(playerid,7);
                    //SetPlayerVirtualWorld(playerid,Enter[playerid]);
                    SetPlayerInterior(playerid,Enter[playerid]);
                    SetPlayerVirtualWorld(playerid,3);
                    Listeningm[playerid] = 0;



                    //Audio_Play(playerid,0, true,false, true);
                    if(MotelInfo[i][mHel] == 1) {
                        new Float:tempheal;
                        GetPlayerHealth(playerid,tempheal);
                        if(tempheal < 100.0) {
                            SetPlayerHealthEx(playerid,100.0);
                            }
                        }
                    }
                    return 1;
                    }


            }
        }
Reply
#2

Sorry for a early bump but can anyone tell me whats wrong with it or how to fix it thanks.
Reply
#3

This is part of /enter of motel so when he enters the motel.
pawn Код:
for(new i = 0; i < sizeof(MotelInfo); i++)
        {
            if (PlayerToPoint(2.0, playerid,MotelInfo[i][mEntrancex], MotelInfo[i][mEntrancey], MotelInfo[i][mEntrancez]))
            {
                ////printf("Found House :%d",i);
                if(PlayerInfo[playerid][pComplexkey] == i || MotelInfo[i][mLock] == 0 || AdminDuty[playerid] == 1)
                {
                    SetPlayerFacingAngle( playerid,0);
                    SetPlayerInterior(playerid,MotelInfo[i][mInt]);
                    SetPlayerVirtualWorld(playerid, MotelInfo[i][mWorld]);
                    Pause(playerid);
                    DOO_SetPlayerPos(playerid,MotelInfo[i][mExitx],MotelInfo[i][mExity],MotelInfo[i][mExitz]);
                    PlayerInfo[playerid][pInt] = MotelInfo[i][mInt];
                    PlayerInfo[playerid][pLocal] = i;
                    MotelEntered[playerid] = i;
                //  Enter[playerid] = MotelInfo[i][mInt];


                }
                else
                {
                    GameTextForPlayer(playerid, "~r~Locked", 5000, 1);

                }

            }

        }
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)