if(dialogid == 10)
    {
        if(response)
        {
            for(new r = 0;r < MAX_ROOMS;r++)
            {
                if(IsPlayerInRangeOfPoint(playerid, 2.0, Room[r][rEnterX], Room[r][rEnterY], Room[r][rEnterZ]) && Room[r][rOwned] == 0)
                {
                    if(Player[playerid][pFlatKey] == 255)
                    {
                        Player[playerid][pFlatKey] = r;
                        Room[r][rOwned] = 1;
                        strmid(Room[r][rOwner], PlName(playerid), 0, strlen(PlName(playerid)), 255);
                        Player[playerid][pMoney] -= Room[r][rPrice];
                        SetPlayerInterior(playerid, 2);
                        SetPlayerPos(playerid, Room[r][rExitX], Room[r][rExitY], Room[r][rExitZ]);
                        SetPlayerVirtualWorld(playerid, r+20);
                        Room[r][rClosed] = 1;
                        SendClientMessage(playerid, COLOR_GREEN, " : ,   !");
                        SendClientMessage(playerid, COLOR_GREEN, " :     100 ,   !");
                        StreamRooms();
                        UpdateRooms();
                    }
                }
            }
        }
    }
    if(dialogid == 11)
    {
        if(response)
        {
            for(new r = 0;r < MAX_ROOMS;r++)
            {
                if(IsPlayerInRangeOfPoint(playerid, 2.0, Room[r][rEnterX], Room[r][rEnterY], Room[r][rEnterZ]))
                {
                    if(Player[playerid][pFlatKey] == r)
                    {
                        SetPlayerPos(playerid, Room[r][rExitX], Room[r][rExitY], Room[r][rExitZ]);
                        SetPlayerVirtualWorld(playerid, r+20);
                        SetPlayerInterior(playerid, 2);
                        GameTextForPlayer(playerid, "My Room", 3000, 1);
                    }
                    else if(Player[playerid][pFlatKey] != r && Room[r][rClosed] == 1)
                    {
                        GameTextForPlayer(playerid, "~r~3aKpblTo", 3000, 1);
                    }
                    else if(Player[playerid][pFlatKey] != r && Room[r][rClosed] == 0)
                    {
                        SetPlayerPos(playerid, Room[r][rExitX], Room[r][rExitY], Room[r][rExitZ]);
                        SetPlayerVirtualWorld(playerid, r+20);
                        GameTextForPlayer(playerid, "My Room", 3000, 1);
                    }
                }
            }
        }
    }
    if(dialogid == 12)
    {
        if(response)
        {
            for(new r = 0;r < MAX_ROOMS;r++)
            {
                if(IsPlayerInRangeOfPoint(playerid, 2.0, Room[r][rExitX], Room[r][rExitY], Room[r][rExitZ]))
                {
                    if(GetPlayerVirtualWorld(playerid) == r+20)
                    {
                        SetPlayerPos(playerid, Room[r][rEnterX], Room[r][rEnterY], Room[r][rEnterZ]);
                        SetPlayerVirtualWorld(playerid, 0);
                        SetPlayerInterior(playerid, 18); //    .
                    }
                }
            }
        }
    }  